aboutsummaryrefslogtreecommitdiff
path: root/share/keyringer/recipients
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-11-16 22:45:58 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-11-16 22:45:58 -0500
commitd9721fd16ad489d400dd085aa7ba8a4d83baf3d3 (patch)
treebcd76d55c4e08f97dfd1f21f53ebc6c47a8d7a1a /share/keyringer/recipients
parentce0d1ee064f94c1fca8e94e1a36dcc17dde5451d (diff)
downloadkeyringer-d9721fd16ad489d400dd085aa7ba8a4d83baf3d3.tar.gz
keyringer-d9721fd16ad489d400dd085aa7ba8a4d83baf3d3.tar.bz2
first pass at escaping variables in bash -- i probably missed some
Diffstat (limited to 'share/keyringer/recipients')
-rwxr-xr-xshare/keyringer/recipients10
1 files changed, 5 insertions, 5 deletions
diff --git a/share/keyringer/recipients b/share/keyringer/recipients
index 593a994..c9dbdbb 100755
--- a/share/keyringer/recipients
+++ b/share/keyringer/recipients
@@ -5,16 +5,16 @@
# Load functions
LIB="`dirname $0`/../../lib/keyringer"
-source $LIB/functions || exit 1
+source "$LIB/functions" || exit 1
# Command parser
-keyringer_get_command $2
+keyringer_get_command "$2"
if [ "$COMMAND" == "ls" ]; then
- cat $RECIPIENTS
+ cat "$RECIPIENTS"
elif [ "$COMMAND" == "edit" ]; then
- $EDITOR $RECIPIENTS
+ "$EDITOR" "$RECIPIENTS"
else
- echo "$BASENAME: No such command $COMMAND"
+ printf "%s: No such command %s\n" "$BASENAME" "$COMMAND"
exit 1
fi