summaryrefslogtreecommitdiff
path: root/localgpgcleankeyring
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-08-06 13:39:38 +0200
committerJonas Smedegaard <dr@jones.dk>2015-08-06 13:39:38 +0200
commita19c756b54921230b0cd82847454d2ac2183fabc (patch)
tree3c0310cda26c6f282fddae2a26d2f809c0c5d9ff /localgpgcleankeyring
parente8620944aca253db14b44a62ae167ad86565ae79 (diff)
Quote single-arg tests.
Diffstat (limited to 'localgpgcleankeyring')
-rwxr-xr-xlocalgpgcleankeyring4
1 files changed, 2 insertions, 2 deletions
diff --git a/localgpgcleankeyring b/localgpgcleankeyring
index 0be9c67..ade8e47 100755
--- a/localgpgcleankeyring
+++ b/localgpgcleankeyring
@@ -6,7 +6,7 @@
# my key should probably be the first secret key listed
mykey=$(gpg --list-secret-keys --with-colons | grep '^sec' | cut -d: -f5 | head -1)
if
- [ -z $mykey ]
+ [ -z "$mykey" ]
then
# exit if no key string
echo "Can't get user's key ID"
@@ -31,7 +31,7 @@ deleters=$(gpg --list-keys --with-colons | grep '^pub' | cut -d: -f5 | egrep -v
# echo the command if there are any to delete
# command is interactive
if
- [ -z $deleters ]
+ [ -z "$deleters" ]
then
echo "# Nothing to delete!"
else