Commit 52069f4f authored by Matt McHenry's avatar Matt McHenry
Browse files

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

parent 345c263f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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");