mirror of https://github.com/dapr/cli.git
Add help message for installing without sudo and admin rights
This commit is contained in:
parent
2a7f1e2c05
commit
74fa15fb0d
|
@ -56,6 +56,7 @@ else {
|
|||
Write-Output "Creating $DaprRoot directory"
|
||||
New-Item -ErrorAction Ignore -Path $DaprRoot -ItemType "directory"
|
||||
if (!(Test-Path $DaprRoot -PathType Container)) {
|
||||
Write-Warning "Please visit https://docs.dapr.io/getting-started/install-dapr-cli/ for instructions on how to install without admin rights."
|
||||
throw "Cannot create $DaprRoot"
|
||||
}
|
||||
|
||||
|
|
|
@ -69,7 +69,10 @@ runAsRoot() {
|
|||
CMD="sudo $CMD"
|
||||
fi
|
||||
|
||||
$CMD
|
||||
$CMD || {
|
||||
echo "Please visit https://docs.dapr.io/getting-started/install-dapr-cli/ for instructions on how to install without sudo."
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
||||
checkHttpRequestCLI() {
|
||||
|
|
Loading…
Reference in New Issue