Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Escape dots in version numbers.

  • Loading branch information...
commit 436d485c4f857b58c7693727e9fdd5b0983b22c7 1 parent 3e95339
@avian2 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  version.sh
View
2  version.sh
@@ -16,7 +16,7 @@ PLACEHOLDER="@VERSION@"
if [ "$CMD" = "--add" ]; then
SED_SCRIPT="s/$PLACEHOLDER/$VERSION/g"
elif [ "$CMD" = "--strip" ]; then
- SED_SCRIPT="s/$VERSION/$PLACEHOLDER/g"
+ SED_SCRIPT="s/${VERSION//./\\.}/$PLACEHOLDER/g"
if find "$TARGET" -regex "$REGEX" -print0 | xargs -0 grep "$PLACEHOLDER"; then
echo "Placeholder $PLACEHOLDER already present in source when stripping version!"
exit 1
Please sign in to comment.
Something went wrong with that request. Please try again.