From 3a485334a7340b9f6bea734453b0fea1196453e7 Mon Sep 17 00:00:00 2001 From: eljamm Date: Fri, 29 Aug 2025 08:55:23 +0200 Subject: [PATCH] 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 --- pkgs/os-specific/linux/kernel/update-xanmod.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/kernel/update-xanmod.sh b/pkgs/os-specific/linux/kernel/update-xanmod.sh index 2e1d9724db2d..5611e8dc1924 100755 --- a/pkgs/os-specific/linux/kernel/update-xanmod.sh +++ b/pkgs/os-specific/linux/kernel/update-xanmod.sh @@ -1,5 +1,5 @@ #!/usr/bin/env nix-shell -#!nix-shell -i bash -p bash nix-prefetch curl jq gawk gnused nixfmt +#!nix-shell -I nixpkgs=./. -i bash -p bash nix-prefetch curl jq gawk gnused nixfmt set -euo pipefail @@ -22,6 +22,9 @@ RELEASES=$(curl --silent https://gitlab.com/api/v4/projects/xanmod%2Flinux/relea RELEASE_URLS=$(echo "$RELEASES" | jq '.[].assets.links.[0].name') while IFS= read -r url; do + # Remove trailing slash + url="${url%/}" + # Get variant, version and suffix from url fields: # 8 9 NF # | | |