Skip to content

Commit 6d2d239

Browse files
authored
Fix Bash syntax issues found by shellcheck (#1482)
Fix issues found in #1469, in addition to those fixed in #1479.
1 parent 27b9a48 commit 6d2d239

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

GRID/utils/extractErroredLogFiles.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
# Beware that errors might occur outside of O2DPG tasks such as in preprocessing etc or not visible in logs
55

66
mytar () {
7-
tar $@
7+
tar "$@"
88
}
99
if [[ $(uname) == "Darwin" ]]; then
1010
echo "Running on macOS. This needs gnu-tar"
1111
$(which gtar)
1212
mytar () {
13-
gtar $@
13+
gtar "$@"
1414
}
1515
fi
1616

GRID/utils/grid_submit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ EOF
401401
spin[1]="|"
402402
spin[0]="\\"
403403
JOBSTATUS="I"
404-
if [ "{WAITFORALIEN}" ]; then
404+
if [ "${WAITFORALIEN}" ]; then
405405
echo -n "Waiting for jobs to return ... Last status : ${spin[0]} ${JOBSTATUS}"
406406
fi
407407
counter=0

0 commit comments

Comments
 (0)