Skip to content

Commit

Permalink
Fix Bash syntax issues found by shellcheck (#1482)
Browse files Browse the repository at this point in the history
Fix issues found in #1469, in
addition to those fixed in #1479.
  • Loading branch information
TimoWilken authored Feb 20, 2024
1 parent 27b9a48 commit 6d2d239
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions GRID/utils/extractErroredLogFiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
# Beware that errors might occur outside of O2DPG tasks such as in preprocessing etc or not visible in logs

mytar () {
tar $@
tar "$@"
}
if [[ $(uname) == "Darwin" ]]; then
echo "Running on macOS. This needs gnu-tar"
$(which gtar)
mytar () {
gtar $@
gtar "$@"
}
fi

Expand Down
2 changes: 1 addition & 1 deletion GRID/utils/grid_submit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ EOF
spin[1]="|"
spin[0]="\\"
JOBSTATUS="I"
if [ "{WAITFORALIEN}" ]; then
if [ "${WAITFORALIEN}" ]; then
echo -n "Waiting for jobs to return ... Last status : ${spin[0]} ${JOBSTATUS}"
fi
counter=0
Expand Down

0 comments on commit 6d2d239

Please sign in to comment.