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