Skip to content

Commit

Permalink
version.sh: Fix sed error on BSDs: bad flag in substitute command: '}'.
Browse files Browse the repository at this point in the history
Explicitly terminate last function (s) within list of functions ({...}).
  • Loading branch information
przemoc committed Jan 9, 2016
1 parent 58955dd commit d534dd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion version.sh
Expand Up @@ -7,7 +7,7 @@ METASTORE_VER="$(\
{ git describe --tags 2>/dev/null \
|| grep -no '^v[0-9][^ ]*' NEWS \
|| echo $METASTORE_PRETAG_VER; \
} | sed '/^1:/s,,,;/:/{s,[^:]*:,,;s,$,+,};q' \
} | sed '/^1:/s,,,;/:/{s,[^:]*:,,;s,$,+,;};q' \
)"

echo "$METASTORE_VER_PREFIX$METASTORE_VER$METASTORE_VER_SUFFIX"

0 comments on commit d534dd2

Please sign in to comment.