m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-08-31 16:55:50 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-08-31 16:55:50 +0200
commit39a7ce70a1342690486a5ed57f162bfdfd1dcacf (patch)
tree93d238b7d7b9f2cae0dfbc7e2cc9999cee6d3916
parent753e216884665daa862ca0503afdd542bb6597e0 (diff)
Use basename in usage.
-rwxr-xr-xpassword-store.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/password-store.sh b/password-store.sh
index 86d2dcc..306f33f 100755
--- a/password-store.sh
+++ b/password-store.sh
@@ -66,8 +66,7 @@ clip() {
) & disown
echo "Copied $2 to clipboard. Will clear in 45 seconds."
}
-
-program="$0"
+program="$(basename "$0")"
command="$1"
if isCommand "$command"; then
shift