From 106015f805113958066ae6a951c8c9d8a94681c4 Mon Sep 17 00:00:00 2001 From: Nicolas Arnaud-Cormos Date: Wed, 16 Apr 2025 06:30:34 +0200 Subject: [PATCH] clink-completions@0.6.2: fix clink script path (#6577) The path installed via `clink installscripts` was different for each version of clink-completions, creating issues as the same script was loaded multiple times (with different version). This change makes the path consistent across versions, making sure only the latest one is loaded. Co-authored-by: Nicolas Arnaud-Cormos --- bucket/clink-completions.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bucket/clink-completions.json b/bucket/clink-completions.json index d5b89178d2..7d05bdc090 100644 --- a/bucket/clink-completions.json +++ b/bucket/clink-completions.json @@ -11,8 +11,9 @@ "extract_dir": "clink-completions-0.6.2", "installer": { "script": [ + "$luapath = Join-Path (Split-Path -Path \"$dir\" -Parent) \"current\"", "if (Get-Command clink -ErrorAction SilentlyContinue) {", - " clink installscripts \"$dir\"", + " clink installscripts \"$luapath\"", "} else {", " warn 'Clink installation not found. Please manually install these scripts.'", "}" @@ -20,8 +21,9 @@ }, "uninstaller": { "script": [ + "$luapath = Join-Path (Split-Path -Path \"$dir\" -Parent) \"current\"", "if (Get-Command clink -ErrorAction SilentlyContinue) {", - " clink uninstallscripts \"$dir\"", + " clink uninstallscripts \"$luapath\"", "}" ] },