Skip to content

Commit

Permalink
More bash syntax check fixes (#1479)
Browse files Browse the repository at this point in the history
  • Loading branch information
martenole authored Feb 20, 2024
1 parent eb41cb7 commit 27b9a48
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion DATA/production/calib/mch-badchannel-processing.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#!/bin/bash

source common/setenv.sh
Expand Down
1 change: 0 additions & 1 deletion DATA/production/calib/tpc-pulser-long.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#!/usr/bin/env bash

source common/setenv.sh
Expand Down
1 change: 0 additions & 1 deletion DATA/production/calib/tpc-pulser.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#!/usr/bin/env bash

source common/setenv.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fi
# if "$DETCONFIG" is set explicitly, this has the second highest priority
# last option is to have it from the JDL
if [[ -z "$DETCONFIG" ]]; then
if [[ -z "ALIEN_JDL_DETCONFIG" ]]; then
if [[ -z "$ALIEN_JDL_DETCONFIG" ]]; then
echo "nothing set the detector configuration to use, exiting"
exit 4
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ else
echo "nCTFsFilesInspected_step1 = $nCTFsFilesInspected_step1, nCTFsFilesInspected_step2 = $nCTFsFilesInspected_step2" > validation_error.message
echo "nCTFsFilesOK_step1 = $nCTFsFilesOK_step1, nCTFsFilesOK_step2 = $nCTFsFilesOK_step2" > validation_error.message
echo "nCTFsProcessed_step1 = $nCTFsProcessed_step1, nCTFsProcessed_step2 = $nCTFsProcessed_step2" > validation_error.message
exit 1000
exit 255
fi
fi
fi
Expand Down Expand Up @@ -663,7 +663,7 @@ if [[ $ALIEN_JDL_AODOFF != 1 ]]; then
CURRENT_POOL_SIZE=`jobs -r | wc -l`
done < $JOB_LIST
# collecting return codes of the merging processes
for i in ${!arr[@]}; do
for i in "${!arr[@]}"; do
wait ${arr[$i]}
exitcode=$?
if [[ $exitcode -ne 0 ]]; then
Expand Down

0 comments on commit 27b9a48

Please sign in to comment.