From: ricola Date: Fri, 19 Oct 2012 20:11:09 +0000 (+0200) Subject: Improve the 'preferences add' action X-Git-Tag: 0.2.1~51 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=c6bd546e9cced474efabd227bbd6cbbdcf995a60;p=keyringer.git Improve the 'preferences add' action --- 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