diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-11-18 10:53:54 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-11-18 10:53:54 -0200 |
commit | dcd5a3b7f546fe6934e91e3ce0c1e68a9bbc6a3a (patch) | |
tree | 94d9cbdef5001c398bd2bb4d5d7a4416de781646 /share/keyringer/options | |
parent | 0909e5395199cfb731964487abfa0bd857f7b94f (diff) | |
parent | d9721fd16ad489d400dd085aa7ba8a4d83baf3d3 (diff) | |
download | keyringer-dcd5a3b7f546fe6934e91e3ce0c1e68a9bbc6a3a.tar.gz keyringer-dcd5a3b7f546fe6934e91e3ce0c1e68a9bbc6a3a.tar.bz2 |
Merge branch 'master' of git://lair.fifthhorseman.net/~dkg/keyringer
Conflicts:
keyringer
Diffstat (limited to 'share/keyringer/options')
-rwxr-xr-x | share/keyringer/options | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/share/keyringer/options b/share/keyringer/options index 9eb2a1f..3047380 100755 --- a/share/keyringer/options +++ b/share/keyringer/options @@ -5,26 +5,26 @@ # 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" # Create options file if old repository if [ ! -e "$OPTIONS" ]; then echo "Creating options file..." - touch $OPTIONS - keyringer_exec git $BASEDIR add config/options + touch "$OPTIONS" + keyringer_exec git "$BASEDIR" add config/options fi if [ "$COMMAND" == "ls" ]; then - cat $OPTIONS + cat "$OPTIONS" elif [ "$COMMAND" == "edit" ]; then - $EDITOR $OPTIONS + "$EDITOR" "$OPTIONS" elif [ "$COMMAND" == "add" ]; then shift 2 - echo $* >> $OPTIONS + echo $* >> "$OPTIONS" else - echo "$BASENAME: No such command $COMMAND" + printf "%s: No such command %s\n" "$BASENAME" "$COMMAND" exit 1 fi |