projects
/
monkeysphere.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
no need for recursive removal of a single file
[monkeysphere.git]
/
src
/
monkeysphere-authentication
diff --git
a/src/monkeysphere-authentication
b/src/monkeysphere-authentication
index 057d14eb85179678727cb359d06c39e539c3b31d..dd44efe8637a6392c4a9c74a1405ff95663a8fab 100755
(executable)
--- a/
src/monkeysphere-authentication
+++ b/
src/monkeysphere-authentication
@@
-136,7
+136,6
@@
LOG_PREFIX=${MONKEYSPHERE_LOG_PREFIX:='ms: '}
# export variables needed in su invocation
export DATE
# export variables needed in su invocation
export DATE
-export MODE
export LOG_LEVEL
export KEYSERVER
export MONKEYSPHERE_USER
export LOG_LEVEL
export KEYSERVER
export MONKEYSPHERE_USER
@@
-150,9
+149,13
@@
export GNUPGHOME
export CORE_KEYLENGTH
export LOG_PREFIX
export CORE_KEYLENGTH
export LOG_PREFIX
+if [ "$#" -eq 0 ] ; then
+ usage
+ failure "Please supply a subcommand."
+fi
+
# get subcommand
COMMAND="$1"
# get subcommand
COMMAND="$1"
-[ "$COMMAND" ] || $PGRM help
shift
case $COMMAND in
shift
case $COMMAND in
@@
-218,6
+221,6
@@
case $COMMAND in
*)
failure "Unknown command: '$COMMAND'
*)
failure "Unknown command: '$COMMAND'
-T
ype
'$PGRM help' for usage."
+T
ry
'$PGRM help' for usage."
;;
esac
;;
esac