From 52069f4fe5337ae48a722d286f67fc0734be51a1 Mon Sep 17 00:00:00 2001 From: Matt McHenry Date: Wed, 9 Oct 2024 08:19:21 -0400 Subject: [PATCH] eclipses: fix update script to avoid extra escapes in url output --- pkgs/applications/editors/eclipse/update.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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");