Skip to content

Commit ccbdc50

Browse files
Fix for getting the CTF file name for randomization in case of 1 CTF only
1 parent 7154e69 commit ccbdc50

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
# export ALIEN_JDL_LPMPASSNAME=apass4
1111
# export ALIEN_JDL_LPMANCHORYEAR=2021
1212

13+
# to skip positional arg parsing before the randomizing part.
14+
inputarg="${1}"
1315

1416
if [[ "${1##*.}" == "root" ]]; then
1517
#echo ${1##*.}
@@ -189,7 +191,7 @@ if [[ -n $ALIEN_JDL_PACKAGES ]]; then # if we have this env variable, it means t
189191
if [[ -f wn.xml ]]; then
190192
grep alien:// wn.xml | tr ' ' '\n' | grep ^lfn | cut -d\" -f2 > tmp.tmp
191193
else
192-
echo $1 > tmp.tmp
194+
echo "${inputarg}" > tmp.tmp
193195
fi
194196
while read -r CTF; do
195197
SUBJOBIDX=$(grep -B1 $CTF CTFs.xml | head -n1 | cut -d\" -f2)

0 commit comments

Comments
 (0)