Browse files

rebase fleet commands to the bindir

  • Loading branch information...
1 parent a76144e commit 4ae2a248413f6cab52a8d28da1d6e08be82f0f90 @substack committed Jul 22, 2012
Showing with 9 additions and 2 deletions.
  1. +9 −2 bin/command.sh
View
11 bin/command.sh
@@ -1,6 +1,13 @@
#!/bin/bash
+dirname=$(dirname "$_")
+
if test -z "$*"; then
- fleet-help
+ $dirname/fleet-help
+elif test "$*" = '-v' || test "$*" = '--version'; then
+ $dirname/fleet-version
+elif test -f "$dirname/fleet-$1"; then
+ $dirname/fleet-$*
else
- fleet-$*
+ echo "Fleet command \"$1\" not recognized."
+ echo 'Type `fleet help` to see a list of all commands.'
fi

0 comments on commit 4ae2a24

Please sign in to comment.