aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorricola <ricola@poivron.org>2012-10-19 22:11:09 +0200
committerricola <ricola@poivron.org>2012-10-19 22:11:09 +0200
commitc6bd546e9cced474efabd227bbd6cbbdcf995a60 (patch)
treebe5961509440774668defb3b901c6e92b9aa9922 /share
parent4021aaae184b97c1971f51baf6f90ea765338159 (diff)
downloadkeyringer-c6bd546e9cced474efabd227bbd6cbbdcf995a60.tar.gz
keyringer-c6bd546e9cced474efabd227bbd6cbbdcf995a60.tar.bz2
Improve the 'preferences add' action
Diffstat (limited to 'share')
-rwxr-xr-xshare/keyringer/preferences1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/keyringer/preferences b/share/keyringer/preferences
index 1e8ad14..edd45e1 100755
--- a/share/keyringer/preferences
+++ b/share/keyringer/preferences
@@ -30,6 +30,7 @@ elif [ "$COMMAND" == "edit" ]; then
"$EDITOR" "$PREFERENCES"
elif [ "$COMMAND" == "add" ]; then
shift 2
+ [[ -n $* ]] && echo $* >> "$PREFERENCES"
else
printf "%s: No such command %s\n" "$BASENAME" "$COMMAND"
exit 1