Commit 1f2741aa authored by Vincent Driessen's avatar Vincent Driessen

sh builtin command typeset is more portable than declare

parent 2ba9a4da
...@@ -77,7 +77,7 @@ main() { ...@@ -77,7 +77,7 @@ main() {
# run command # run command
. "$GITFLOW_DIR/git-flow-$BTYPE" . "$GITFLOW_DIR/git-flow-$BTYPE"
if ! declare -f cmd_$ACTION >/dev/null; then if ! typeset -f cmd_$ACTION >/dev/null; then
usage usage
exit 1 exit 1
fi fi
......
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