mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
* nix-prefetch-url depends on sed (see
http://hydra.nixos.org/build/311170).
This commit is contained in:
parent
84a4dd5ff0
commit
05fbf61f0e
3 changed files with 3 additions and 1 deletions
|
@ -24,7 +24,7 @@ fi
|
|||
# Handle escaped characters in the URI. `+', `=' and `?' are the only
|
||||
# characters that are valid in Nix store path names but have a special
|
||||
# meaning in URIs.
|
||||
name=$(basename "$url" | sed -e 's/%2b/+/g' -e 's/%3d/=/g' -e 's/%3f/\?/g')
|
||||
name=$(basename "$url" | @sed@ -e 's/%2b/+/g' -e 's/%3d/=/g' -e 's/%3f/\?/g')
|
||||
if test -z "$name"; then echo "invalid url"; exit 1; fi
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue