Skip to content

Commit

Permalink
(maint) update RefreshEnv messaging
Browse files Browse the repository at this point in the history
Make it clear that one is for powershell.exe and the other is for
cmd.exe. They have different methods of refreshing the environment
variables and only share a command name.
  • Loading branch information
ferventcoder committed Oct 3, 2016
1 parent 5b2c6e2 commit 92035b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ None
}

if ($refreshEnv) {
Write-Output "Refreshing environment variables from the registry..."
Write-Output "Refreshing environment variables from the registry for powershell.exe. Please wait..."
} else {
Write-Verbose "Refreshing environment variables from the registry."
}
Expand Down
4 changes: 2 additions & 2 deletions src/chocolatey.resources/redirects/RefreshEnv.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:: environment every time you want environment changes to propagate

::echo "RefreshEnv.cmd only works from cmd.exe, please install the Chocolatey Profile to take advantage of refreshenv from PowerShell"
echo | set /p dummy="Refreshing environment variables from registry for cmd.exe. Please wait... "
echo | set /p dummy="Refreshing environment variables from registry for cmd.exe. Please wait..."

goto main

Expand Down Expand Up @@ -52,5 +52,5 @@ goto main
:: Set these variables
call "%TEMP%\_env.cmd"

echo | set /p dummy="Done"
echo | set /p dummy="Finished."
echo .

0 comments on commit 92035b7

Please sign in to comment.