summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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