Commit e2fa4913 authored by Benedikt Böhm's avatar Benedikt Böhm

remove bash specific expansions

parent 83d4361c
#!/bin/bash #!/bin/sh
# #
# gitflow -- A collection of Git wrapper scripts to provide high-level # gitflow -- A collection of Git wrapper scripts to provide high-level
# repository operations for Vincent Driessen's branching model: # repository operations for Vincent Driessen's branching model:
...@@ -25,7 +25,11 @@ export ORIGIN=$(git config --get gitflow.origin || echo origin) ...@@ -25,7 +25,11 @@ export ORIGIN=$(git config --get gitflow.origin || echo origin)
warn() { echo "$@" >&2; } warn() { echo "$@" >&2; }
die() { warn "$@"; exit 1; } die() { warn "$@"; exit 1; }
has() { [[ " ${*:2} " == *" $1 "* ]]; }
has() {
local item=$1; shift
echo " $@ " | grep -q " $item "
}
usage() { usage() {
. "$GITFLOW_DIR/git-flow-version" . "$GITFLOW_DIR/git-flow-version"
......
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