Commit 7672d99d authored by Benedikt Böhm's avatar Benedikt Böhm

remove useless sanity check

parent 0b378bc7
...@@ -72,16 +72,6 @@ main() { ...@@ -72,16 +72,6 @@ main() {
# run command # run command
. "$GITFLOW_DIR/git-flow-$SUBCOMMAND" . "$GITFLOW_DIR/git-flow-$SUBCOMMAND"
if ! typeset -f sub_main >/dev/null; then
usage
exit 1
fi
# run command
sub_main "$@"
}
sub_main() {
SUBACTION="${1:-default}"; shift SUBACTION="${1:-default}"; shift
if ! typeset -f cmd_$SUBACTION 2>&1 >/dev/null; then if ! typeset -f cmd_$SUBACTION 2>&1 >/dev/null; then
warn "Unknown subcommand: '$1'" warn "Unknown subcommand: '$1'"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment