eclipses: fix update script to avoid extra escapes in url output

This commit is contained in:
Matt McHenry 2024-10-09 08:19:21 -04:00
parent 345c263f2f
commit 52069f4fe5

View File

@ -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");