Skip to content

Commit

Permalink
fix: qa-dkrz.clear() and rm qa_file.nc
Browse files Browse the repository at this point in the history
  • Loading branch information
h-dh committed Apr 19, 2016
1 parent 38e6825 commit 9b2c060
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/qa-dkrz
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,7 @@ getNextVariable()
# apply rules, clearings, and test for qa_note files
if \
#trace \
testLocks $1 $qa_fl ; then
testLocks $1 qa_fl ; then
nextFile= # ignore, try next
return 0
fi
Expand Down Expand Up @@ -4196,15 +4196,18 @@ testLocks()
getExperimentName $1
fi

# if CLEAR=only or SHOW_CLEAR was set, then try another variable
if clear ; then
\rm -f $2
return 0
eval $2=
return 1
fi
fi

eval dollar2=${!2}

if \
#trace \
checkLockFile $1 $2 ; then
checkLockFile $1 $dollar2 ; then
# if [ ${PROGRESS_BAR} ] ; then
# local num=$( ls -d ${PROJECT_DATA}/${subPath}/${1}*.nc \
# | grep -c . )
Expand Down

0 comments on commit 9b2c060

Please sign in to comment.