]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Sorting functions
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 18 Sep 2010 17:00:43 +0000 (14:00 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 18 Sep 2010 17:00:43 +0000 (14:00 -0300)
lib/keyringer/functions

index 67bbc5023c674342bebfc5629b867cd904b79616..4ee1ead8bc457c6e17d34412a8f3a2095ea2ebd5 100644 (file)
@@ -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 $*