summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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