From 39a7ce70a1342690486a5ed57f162bfdfd1dcacf Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 31 Aug 2012 16:55:50 +0200 Subject: Use basename in usage. --- password-store.sh | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3