Skip to content

Commit

Permalink
remove bash specific expansions
Browse files Browse the repository at this point in the history
  • Loading branch information
hollow committed Jan 26, 2010
1 parent 83d4361 commit e2fa491
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions git-flow
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
#
# gitflow -- A collection of Git wrapper scripts to provide high-level
# repository operations for Vincent Driessen's branching model:
Expand All @@ -25,7 +25,11 @@ export ORIGIN=$(git config --get gitflow.origin || echo origin)

warn() { echo "$@" >&2; }
die() { warn "$@"; exit 1; }
has() { [[ " ${*:2} " == *" $1 "* ]]; }

has() {
local item=$1; shift
echo " $@ " | grep -q " $item "
}

usage() {
. "$GITFLOW_DIR/git-flow-version"
Expand Down

0 comments on commit e2fa491

Please sign in to comment.