mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-10-31 22:01:19 +00:00 
			
		
		
		
	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 <nicolas.arnaud-cormos@kdab.com>
This commit is contained in:
		
							parent
							
								
									d0e8ac44f9
								
							
						
					
					
						commit
						106015f805
					
				| @ -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\"", | ||||
|             "}" | ||||
|         ] | ||||
|     }, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Nicolas Arnaud-Cormos
						Nicolas Arnaud-Cormos