diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-09 01:35:24 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-09 01:35:24 +1200 |
commit | 688df67b98822116a0192bea57c700fd7d89ccd4 (patch) | |
tree | 3222d189b5f59ef656b1e0de2534b166e78e28f8 /install | |
parent | Improve ed(1) abstraction (diff) | |
download | dotfiles-688df67b98822116a0192bea57c700fd7d89ccd4.tar.gz dotfiles-688df67b98822116a0192bea57c700fd7d89ccd4.zip |
Hardcode install script name in error output
$0 is unreliable/misleading
Diffstat (limited to 'install')
-rwxr-xr-x | install | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -47,14 +47,14 @@ lns() { # Bail if we don't have git(1) if ! hash git 2>/dev/null; then - printf '%s: Could not find git(1)!\n' "${0##*/}" >&2 + printf 'install: Could not find git(1)!\n' >&2 exit 1 fi # Define dotfiles directory and check it exists dotfiles=$HOME/.dotfiles if [[ ! -d $dotfiles ]]; then - printf '%s: Could not find %s!\n' "$dotfiles" "${0##*/}" >&2 + printf 'install: Could not find %s!\n' "$dotfiles" >&2 exit 1 fi |