Skip to content

Commit

Permalink
Remove unnecessary option
Browse files Browse the repository at this point in the history
  • Loading branch information
Isamu Mogi committed Aug 26, 2014
1 parent 34b00dd commit 0b0b0a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skelton/cabal
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fi

CABAL_BUILDABLE_COMMANDS="build clean configure copy haddock hscolour install register sdist test upgrade"

CABAL_COMMAND="$(echo ${@} | tr -s ' ' '\n' | grep -E '[a-z]' | grep -Ev '^-' | head -n 1)"
CABAL_COMMAND="$(echo ${@} | tr -s ' ' '\n' | grep '[a-z]' | grep -v '^-' | head -n 1)"

for CABAL_BUILDABLE_COMMAND in ${CABAL_BUILDABLE_COMMANDS}; do
if [ "${CABAL_BUILDABLE_COMMAND}" = "${CABAL_COMMAND}" ]; then
Expand Down

0 comments on commit 0b0b0a2

Please sign in to comment.