Commit 4242e30
committed
anchorMC: Fix bug in restoring custom env variable
This fixes https://its.cern.ch/jira/browse/O2-6621
The `export $var=$b` command, used to restore environment variables
was executed in a sub-shell because we piped into the while loop.
This is avoiding by not using a pipe. Instead the while loop iterations are
taken from `< <()` notation.1 parent 1da166a commit 4242e30
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| 278 | + | |
278 | 279 | | |
279 | | - | |
280 | | - | |
281 | 280 | | |
282 | 281 | | |
283 | 282 | | |
284 | 283 | | |
285 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
286 | 289 | | |
287 | 290 | | |
288 | 291 | | |
| |||
0 commit comments