mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 10:22:54 +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
|
||||
|
||||
# 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\"|"
|
||||
if cmp -s "$nixFile" "$nixFile.cmp"; then
|
||||
|
||||
Reference in New Issue
Block a user