fix sed interpreting version string period as regex

This commit is contained in:
Ryan Mulligan 2018-03-07 07:42:18 -08:00
parent 3a19c72caa
commit 621aa95f8a

3
up.sh
View File

@ -32,7 +32,8 @@ git checkout master
git checkout -B "$BRANCH_NAME"
OLD_HASH=$(nix eval -f . --raw "pkgs.${PACKAGE_NAME}.src.drvAttrs.outputHash")
sed -i "s/$2/$3/g" "$DERIVATION_FILE"
sed -i "s/${2/\./\\.}/$3/g" "$DERIVATION_FILE"
NEW_HASH=$(nix-prefetch-url -A "$1.src")