summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Vincent <pass@tlvince.com>2013-10-31 16:05:45 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2014-03-20 02:24:17 -0600
commitea0572cf2cf4980555c7f1dc4cbf9c0962041a6c (patch)
treed2f8c2b4e12b91784a6cf1cf13673709688e154c
parentf4a7d9ed71a8bc415be08bd709002b3ac0913654 (diff)
downloadpass-ea0572cf2cf4980555c7f1dc4cbf9c0962041a6c.tar.gz
pass-ea0572cf2cf4980555c7f1dc4cbf9c0962041a6c.tar.bz2
pass-ea0572cf2cf4980555c7f1dc4cbf9c0962041a6c.zip
Prefer bash parameter expansion over basename(1)
-rwxr-xr-xsrc/password-store.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index 84ac2d6..e9ba4f0 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -158,7 +158,7 @@ SHRED="shred -f -z"
# END Platform definable
#
-program="$(basename "$0")"
+program="${0##*/}"
command="$1"
if is_command "$command"; then
shift