summaryrefslogtreecommitdiff
path: root/password-store.sh
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 /password-store.sh
parent753e216884665daa862ca0503afdd542bb6597e0 (diff)
downloadpass-39a7ce70a1342690486a5ed57f162bfdfd1dcacf.tar.gz
pass-39a7ce70a1342690486a5ed57f162bfdfd1dcacf.tar.bz2
pass-39a7ce70a1342690486a5ed57f162bfdfd1dcacf.zip
Use basename in usage.
Diffstat (limited to '')
-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
d>2-16/+24 2015-01-13Handle being given numbers as feed nameAntonio Terceiro2-0/+16 2015-01-13Rakefile: remove wrong (and thus unused) flagAntonio Terceiro1-1/+0 2015-01-13Remove deprecated 'test suite' fileAntonio Terceiro1-12/+0 2015-01-13Rakefile: re-indentAntonio Terceiro1-35/+35 2015-01-13Rakefile: run tests in verbose modeAntonio Terceiro1-1/+2 2014-10-071.2.3 releaseAntonio Terceiro1-1/+1 2014-10-07Fix cleanup of maildirsAntonio Terceiro3-1/+16 2014-05-18feed2imap-test: reuse cache dir/protect configAntonio Terceiro1-1/+1 2014-02-13feed2imap-test: can now take a feed URL as argumentAntonio Terceiro1-3/+22 2014-02-13update .gitignoreAntonio Terceiro1-0/+2 2014-02-13fix dependency on ruby-feedparserAntonio Terceiro1-1/+1 2014-02-05Release 1.2.2Antonio Terceiro2-2/+2 2014-02-05config: fix regression with arrays as targetAntonio Terceiro2-1/+17 2013-08-28Fix teardown method nameAntonio Terceiro1-1/+1