diff options
author | ricola <ricola@poivron.org> | 2012-10-19 22:11:09 +0200 |
---|---|---|
committer | ricola <ricola@poivron.org> | 2012-10-19 22:11:09 +0200 |
commit | c6bd546e9cced474efabd227bbd6cbbdcf995a60 (patch) | |
tree | be5961509440774668defb3b901c6e92b9aa9922 /share | |
parent | 4021aaae184b97c1971f51baf6f90ea765338159 (diff) | |
download | keyringer-c6bd546e9cced474efabd227bbd6cbbdcf995a60.tar.gz keyringer-c6bd546e9cced474efabd227bbd6cbbdcf995a60.tar.bz2 |
Improve the 'preferences add' action
Diffstat (limited to 'share')
-rwxr-xr-x | share/keyringer/preferences | 1 |
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 |