mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-12-17 12:51:19 +00:00
clink-flex-prompt@0.18: fix clink script path (#7171)
The path installed via clink installscripts was different for each version of clink-flex-prompt, 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. Closes #7170
This commit is contained in:
parent
6cd2bb858f
commit
892dd302ce
@ -15,10 +15,11 @@
|
|||||||
],
|
],
|
||||||
"installer": {
|
"installer": {
|
||||||
"script": [
|
"script": [
|
||||||
|
"$luapath = Join-Path (Split-Path -Path \"$dir\" -Parent) \"current\"",
|
||||||
"if (Get-Command clink -ErrorAction SilentlyContinue) {",
|
"if (Get-Command clink -ErrorAction SilentlyContinue) {",
|
||||||
" clink installscripts \"$dir\"",
|
" clink installscripts \"$luapath\"",
|
||||||
"} elseif ($Env:CMDER_ROOT) {",
|
"} elseif ($Env:CMDER_ROOT) {",
|
||||||
" & \"$Env:CMDER_ROOT\\vendor\\clink\\clink.bat\" installscripts \"$dir\"",
|
" & \"$Env:CMDER_ROOT\\vendor\\clink\\clink.bat\" installscripts \"$luapath\"",
|
||||||
"} else {",
|
"} else {",
|
||||||
" warn 'Clink or Cmder installation not found. Please manually install these scripts.'",
|
" warn 'Clink or Cmder installation not found. Please manually install these scripts.'",
|
||||||
"}"
|
"}"
|
||||||
@ -26,10 +27,11 @@
|
|||||||
},
|
},
|
||||||
"uninstaller": {
|
"uninstaller": {
|
||||||
"script": [
|
"script": [
|
||||||
|
"$luapath = Join-Path (Split-Path -Path \"$dir\" -Parent) \"current\"",
|
||||||
"if (Get-Command clink -ErrorAction SilentlyContinue) {",
|
"if (Get-Command clink -ErrorAction SilentlyContinue) {",
|
||||||
" clink uninstallscripts \"$dir\"",
|
" clink uninstallscripts \"$luapath\"",
|
||||||
"} elseif ($Env:CMDER_ROOT) {",
|
"} elseif ($Env:CMDER_ROOT) {",
|
||||||
" & \"$Env:CMDER_ROOT\\vendor\\clink\\clink.bat\" uninstallscripts \"$dir\"",
|
" & \"$Env:CMDER_ROOT\\vendor\\clink\\clink.bat\" uninstallscripts \"$luapath\"",
|
||||||
"}"
|
"}"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user