sh builtin command typeset is more portable than declare
diff --git a/git-flow b/git-flow
index 81f87fc..bede192 100755
--- a/git-flow
+++ b/git-flow
@@ -77,7 +77,7 @@
 	# 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