Skip to content

Commit f240b4c

Browse files
committed
Append (rather than prepend) /usr/games to PATH in container
We wouldn't want to prioritize games over real programs.
1 parent a25de7f commit f240b4c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

01-building/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ bash: fortune: command not found
134134
Drat! It looks like the programs were not added to our `$PATH`. Let's add them and try again.
135135

136136
```
137-
Singularity lolcow:~> export PATH=/usr/games:$PATH
137+
Singularity lolcow:~> export PATH=$PATH:/usr/games
138138
139139
Singularity lolcow:~> fortune | cowsay | lolcat
140140
perl: warning: Setting locale failed.
@@ -206,7 +206,7 @@ MirrorURL: http://ftp.us.debian.org/debian/
206206
apt-get clean
207207
208208
%environment
209-
export PATH=/usr/games:$PATH
209+
export PATH=$PATH:/usr/games
210210
export LC_ALL=C
211211
```
212212

@@ -236,6 +236,6 @@ MirrorURL: http://ftp.us.debian.org/debian/
236236
apt-get clean
237237
238238
%environment
239-
export PATH=/usr/games:$PATH
239+
export PATH=$PATH:/usr/games
240240
export LC_ALL=C
241241
```

03-runscript/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ MirrorURL: http://ftp.us.debian.org/debian/
9090
apt-get clean
9191
9292
%environment
93-
export PATH=/usr/games:$PATH
93+
export PATH=$PATH:/usr/games
9494
export LC_ALL=C
9595
```
9696

0 commit comments

Comments
 (0)