diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-12-06 15:28:33 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-12-06 15:28:33 +1300 |
commit | 406a2b4a2fd6f1d051d176c63f4252243a634511 (patch) | |
tree | fcf779f87ad7777cd5201be96df36f0a6eb5d1e5 | |
parent | More instructive name for section (diff) | |
download | dotfiles-406a2b4a2fd6f1d051d176c63f4252243a634511.tar.gz dotfiles-406a2b4a2fd6f1d051d176c63f4252243a634511.zip |
Name self and use name in error messages
-rwxr-xr-x | install | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -25,6 +25,7 @@ # # Run this at your own risk! # +self=install # Replace existing file with link if user confirms lns() { @@ -49,7 +50,7 @@ lns() { # Bail if we don't have git(1) if ! hash git 2>/dev/null; then - printf 'install: Could not find git(1)!\n' >&2 + printf '%s: Could not find git(1)!\n' "$self" >&2 exit 1 fi |