aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/password-store.sh
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 /src/password-store.sh
parentFix argument order for mktemp (diff)
downloadpassword-store-ea0572cf2cf4980555c7f1dc4cbf9c0962041a6c.tar.xz
password-store-ea0572cf2cf4980555c7f1dc4cbf9c0962041a6c.zip
Prefer bash parameter expansion over basename(1)
Diffstat (limited to 'src/password-store.sh')
-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