Skip to content

Commit

Permalink
Use $HOME instead of ~ in PATH env variable
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Blanquicet <[email protected]>
  • Loading branch information
blanquicet committed Dec 1, 2023
1 parent 624adef commit 7169fa0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion linux/tools.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ RUN ln -s /usr/bin/node /usr/bin/nodejs
# Add user's home directories to PATH at the front so they can install tools which
# override defaults
# Add dotnet tools to PATH so users can install a tool using dotnet tools and can execute that command from any directory
ENV PATH ~/.local/bin:~/bin:~/.dotnet/tools:$PATH
ENV PATH $HOME/.local/bin:$HOME/bin:$HOME/.dotnet/tools:$PATH

# Set AZUREPS_HOST_ENVIRONMENT
ENV AZUREPS_HOST_ENVIRONMENT cloud-shell/1.0
4 changes: 2 additions & 2 deletions tests/PSinLinuxCloudShellImage.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ Describe "Various programs installed with expected versions" {

It "has local paths in `$PATH" {
$paths = ($env:PATH).split(":")
$paths | Should -Contain "~/bin"
$paths | Should -Contain "~/.local/bin"
$paths | Should -Contain "$HOME/bin"
$paths | Should -Contain "$HOME/.local/bin"
}

It "Ansible pwsh has modules" {
Expand Down

0 comments on commit 7169fa0

Please sign in to comment.