Commit ce03c06
committed
shell: correct HOSTNAME env var if set in job environment
Problem: If the HOSTNAME variable is set in the job environment, it
is almost certainly incorrect. This can cause confusing behavior
for job tasks that make use of this variable.
If HOSTNAME is set in the job environment, correct it by using the
current hostname.
Fixes #52581 parent 98eb2c1 commit ce03c06
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
157 | 169 | | |
158 | 170 | | |
159 | 171 | | |
| |||
0 commit comments