diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-09-18 14:00:43 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-09-18 14:00:43 -0300 |
commit | 352f37e26870df77af9cbad07774d4e8a19b81ff (patch) | |
tree | 4d95a172566e06ebdd62d6132b9a61e0f17071b5 /lib | |
parent | 3ef42ced45817c3fbd0c5247edfd06f1598e1d78 (diff) | |
download | keyringer-352f37e26870df77af9cbad07774d4e8a19b81ff.tar.gz keyringer-352f37e26870df77af9cbad07774d4e8a19b81ff.tar.bz2 |
Sorting functions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/keyringer/functions | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions index 67bbc50..4ee1ead 100644 --- a/lib/keyringer/functions +++ b/lib/keyringer/functions @@ -223,6 +223,17 @@ function keyringer_get_new_file { fi } +# Get a command argument +function keyringer_get_command { + # Aditional parameters + COMMAND="$1" + + if [ -z "$COMMAND" ]; then + keyringer_action_usage command + exit 1 + fi +} + # Run the action usage function keyringer_action_usage { if [ "`type -t "keyringer_usage_$BASENAME"`" == "function" ]; then @@ -238,16 +249,5 @@ function keyringer_action_usage { fi } -# Get a command argument -function keyringer_get_command { - # Aditional parameters - COMMAND="$1" - - if [ -z "$COMMAND" ]; then - keyringer_action_usage command - exit 1 - fi -} - # Setup environment keyringer_set_env $* |