Skip to content

Commit ca91064

Browse files
committed
Use $HOME instead of ~ in PATH env variable
Signed-off-by: Jose Blanquicet <josebl@microsoft.com>
1 parent 624adef commit ca91064

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

linux/tools.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ RUN ln -s /usr/bin/node /usr/bin/nodejs
6969
# Add user's home directories to PATH at the front so they can install tools which
7070
# override defaults
7171
# Add dotnet tools to PATH so users can install a tool using dotnet tools and can execute that command from any directory
72-
ENV PATH ~/.local/bin:~/bin:~/.dotnet/tools:$PATH
72+
ENV PATH '$HOME/.local/bin:$HOME/bin:$HOME/.dotnet/tools':$PATH
7373

7474
# Set AZUREPS_HOST_ENVIRONMENT
7575
ENV AZUREPS_HOST_ENVIRONMENT cloud-shell/1.0

tests/PSinLinuxCloudShellImage.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ Describe "Various programs installed with expected versions" {
7474

7575
It "has local paths in `$PATH" {
7676
$paths = ($env:PATH).split(":")
77-
$paths | Should -Contain "~/bin"
78-
$paths | Should -Contain "~/.local/bin"
77+
$paths | Should -Contain '$HOME/bin'
78+
$paths | Should -Contain '$HOME/.local/bin'
7979
}
8080

8181
It "Ansible pwsh has modules" {

0 commit comments

Comments
 (0)