mirror of
https://github.com/langgenius/dify.git
synced 2026-10-16 15:35:32 +08:00
fix(cli): print the skill hint from PowerShell installers only when difyctl is on PATH
This commit is contained in:
@@ -59,7 +59,9 @@ function Install-DifyctlBinary([string]$dlUrl, [string]$sha, [string]$version, [
|
||||
Write-Host "$installDir is not on your PATH. Add it with:"
|
||||
Write-Host " [Environment]::SetEnvironmentVariable('PATH', `"$installDir;`$env:PATH`", 'User')"
|
||||
}
|
||||
Write-SkillHint
|
||||
else {
|
||||
Write-SkillHint
|
||||
}
|
||||
}
|
||||
|
||||
function Install-DifyctlR2 {
|
||||
|
||||
@@ -161,8 +161,8 @@ function Invoke-Main {
|
||||
}
|
||||
else {
|
||||
Write-Host 'verify: run "difyctl version"'
|
||||
Write-SkillHint
|
||||
}
|
||||
Write-SkillHint
|
||||
}
|
||||
finally {
|
||||
Remove-Item -Recurse -Force $tmp -ErrorAction SilentlyContinue
|
||||
|
||||
Reference in New Issue
Block a user