mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
update-source-version: escape question mark in old url
This commit is contained in:
@@ -230,7 +230,7 @@ if [[ -n "$newUrl" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Escape regex metacharacter that are allowed in store path names
|
# Escape regex metacharacter that are allowed in store path names
|
||||||
oldUrlEscaped=$(echo "$oldUrl" | sed -re 's|[${}.+]|\\&|g')
|
oldUrlEscaped=$(echo "$oldUrl" | sed -re 's|[${}.+?]|\\&|g')
|
||||||
|
|
||||||
sed -i.cmp "$nixFile" -re "s|\"$oldUrlEscaped\"|\"$newUrl\"|"
|
sed -i.cmp "$nixFile" -re "s|\"$oldUrlEscaped\"|\"$newUrl\"|"
|
||||||
if cmp -s "$nixFile" "$nixFile.cmp"; then
|
if cmp -s "$nixFile" "$nixFile.cmp"; then
|
||||||
|
|||||||
Reference in New Issue
Block a user