linux_xanmod: update script improvements

- Specify nixpkgs in nix-shell for more consistency
- Remove trailing slash in release URLs, which can mess up field slicing

authored by

eljamm and committed by
Alyssa Ross
3a485334 a75b949e

+4 -1
+4 -1
pkgs/os-specific/linux/kernel/update-xanmod.sh
··· 1 #!/usr/bin/env nix-shell 2 - #!nix-shell -i bash -p bash nix-prefetch curl jq gawk gnused nixfmt 3 4 set -euo pipefail 5 ··· 22 RELEASE_URLS=$(echo "$RELEASES" | jq '.[].assets.links.[0].name') 23 24 while IFS= read -r url; do 25 # Get variant, version and suffix from url fields: 26 # 8 9 NF 27 # | | |
··· 1 #!/usr/bin/env nix-shell 2 + #!nix-shell -I nixpkgs=./. -i bash -p bash nix-prefetch curl jq gawk gnused nixfmt 3 4 set -euo pipefail 5 ··· 22 RELEASE_URLS=$(echo "$RELEASES" | jq '.[].assets.links.[0].name') 23 24 while IFS= read -r url; do 25 + # Remove trailing slash 26 + url="${url%/}" 27 + 28 # Get variant, version and suffix from url fields: 29 # 8 9 NF 30 # | | |