Skip to content

Commit b4f7cda

Browse files
committed
Added basename to PROGRAM variable to remove path from command - stops bug if invoked with path
1 parent 0221ac6 commit b4f7cda

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

notes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ validate_gpg_keyid () {
101101

102102
# test key character length = the last 16 (short) or the full 40 (long) are acceptable
103103
case ${#testkey} in
104-
105104
16|40)
106105
shortkey="`echo ${testkey} | tail -c 17`"
107106
if [ "`grep ${shortkey} ${keyids}`" = "0" ] ; then
@@ -514,7 +513,7 @@ cmd_newkey () {
514513
# #
515514
#########################
516515

517-
PROGRAM="${0##*/}"
516+
PROGRAM="`basename ${0##*/}`"
518517
COMMAND="$1"
519518

520519
case "$1" in

0 commit comments

Comments
 (0)