Skip to content

Commit 27b9a48

Browse files
authored
More bash syntax check fixes (#1479)
1 parent eb41cb7 commit 27b9a48

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

DATA/production/calib/mch-badchannel-processing.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#!/bin/bash
32

43
source common/setenv.sh

DATA/production/calib/tpc-pulser-long.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#!/usr/bin/env bash
32

43
source common/setenv.sh

DATA/production/calib/tpc-pulser.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#!/usr/bin/env bash
32

43
source common/setenv.sh

DATA/production/configurations/2021/ctf_recreation/ctf_recreation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fi
7272
# if "$DETCONFIG" is set explicitly, this has the second highest priority
7373
# last option is to have it from the JDL
7474
if [[ -z "$DETCONFIG" ]]; then
75-
if [[ -z "ALIEN_JDL_DETCONFIG" ]]; then
75+
if [[ -z "$ALIEN_JDL_DETCONFIG" ]]; then
7676
echo "nothing set the detector configuration to use, exiting"
7777
exit 4
7878
else

DATA/production/configurations/2022/LHC22f/apass1/async_pass.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ else
504504
echo "nCTFsFilesInspected_step1 = $nCTFsFilesInspected_step1, nCTFsFilesInspected_step2 = $nCTFsFilesInspected_step2" > validation_error.message
505505
echo "nCTFsFilesOK_step1 = $nCTFsFilesOK_step1, nCTFsFilesOK_step2 = $nCTFsFilesOK_step2" > validation_error.message
506506
echo "nCTFsProcessed_step1 = $nCTFsProcessed_step1, nCTFsProcessed_step2 = $nCTFsProcessed_step2" > validation_error.message
507-
exit 1000
507+
exit 255
508508
fi
509509
fi
510510
fi
@@ -663,7 +663,7 @@ if [[ $ALIEN_JDL_AODOFF != 1 ]]; then
663663
CURRENT_POOL_SIZE=`jobs -r | wc -l`
664664
done < $JOB_LIST
665665
# collecting return codes of the merging processes
666-
for i in ${!arr[@]}; do
666+
for i in "${!arr[@]}"; do
667667
wait ${arr[$i]}
668668
exitcode=$?
669669
if [[ $exitcode -ne 0 ]]; then

0 commit comments

Comments
 (0)