aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-09 01:35:24 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-09 01:35:24 +1200
commit688df67b98822116a0192bea57c700fd7d89ccd4 (patch)
tree3222d189b5f59ef656b1e0de2534b166e78e28f8 /install
parentImprove ed(1) abstraction (diff)
downloaddotfiles-688df67b98822116a0192bea57c700fd7d89ccd4.tar.gz
dotfiles-688df67b98822116a0192bea57c700fd7d89ccd4.zip
Hardcode install script name in error output
$0 is unreliable/misleading
Diffstat (limited to 'install')
-rwxr-xr-xinstall4
1 files changed, 2 insertions, 2 deletions
diff --git a/install b/install
index a64e6a6f..b6ae8b46 100755
--- a/install
+++ b/install
@@ -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