From 2b300f1e44a4ee7f7c0c1bb2f23d3b20b3fe6e14 Mon Sep 17 00:00:00 2001 From: Gilver Date: Wed, 18 Jun 2025 03:28:54 -0500 Subject: [PATCH] fix(kmod-nvidia): Add $ to update script Signed-off-by: Gilver --- anda/system/nvidia/kmod-nvidia/update.rhai | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anda/system/nvidia/kmod-nvidia/update.rhai b/anda/system/nvidia/kmod-nvidia/update.rhai index 76e8f2a279..fc6ca49fa7 100644 --- a/anda/system/nvidia/kmod-nvidia/update.rhai +++ b/anda/system/nvidia/kmod-nvidia/update.rhai @@ -16,7 +16,7 @@ let kver = find_all(`kernel-([\d.]+.*?)\.el.*?\.x86_64\.rpm`, get(`https://repo. kver.dedup(); open_file("anda/system/nvidia/kmod-nvidia/VERSION_kernel.txt", "w").write(`${kver[kver.len - 1][1]}`); -let dir = sub(`/[^/]+`, "", __script_path); +let dir = sub(`/[^/]+$`, "", __script_path); if sh("[[ `git status " + dir + " --porcelain` ]] && exit 1 || exit 0", #{}).ctx.rc == 1 { let rel = spec::get_release(rpm).parse_int(); rpm.release(rel + 1);