diff --git a/pkgs/applications/editors/eclipse/update.sh b/pkgs/applications/editors/eclipse/update.sh index 7e100ccfbcd7..01b3ec5fa57b 100755 --- a/pkgs/applications/editors/eclipse/update.sh +++ b/pkgs/applications/editors/eclipse/update.sh @@ -59,9 +59,10 @@ sed -i 's/64 = ".*";$/64 = "";/g' pkgs/applications/editors/eclipse/default.nix echo; echo "paste the following url + hash blocks into pkgs/applications/editors/eclipse/default.nix:"; -for u in $(grep 'url = ' pkgs/applications/editors/eclipse/default.nix | grep arch | cut -d '"' -f 2 | sed 's/&/\\&/g'); do +for url in $(grep 'url = ' pkgs/applications/editors/eclipse/default.nix | grep arch | cut -d '"' -f 2); do + u=$(echo "$url" | sed 's/&/\\&/g'); echo; - echo " url = \"${u}\";"; + echo " url = \"${url}\";"; echo " hash = {"; for arch in x86_64 aarch64; do us=$(eval echo "$u");