Skip to content

Commit ee405b7

Browse files
committed
updating scripts to work with new Github CI
1 parent 43a875d commit ee405b7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/local/utils/attach_all_plots.bash

+5-6
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ REPO=NCAR/wrf_hydro_nwm_public
2121

2222
cd $diffs
2323

24-
for d in `ls -1`
25-
do
26-
if [[ -d $d && `ls -1 $d` ]]; then
27-
python $cwd/attach_plots_to_pr.py -r $REPO -p $PR -d -t "$TOKEN" --title "$title" $d/*
28-
fi
29-
done
24+
# if $diffs directory is not empty, attach files in it
25+
if [[ `ls -1 ./` ]]
26+
then
27+
python $cwd/attach_plots_to_pr.py -r $REPO -p $PR -d -t "$TOKEN" --title "$title" ./*
28+
fi

0 commit comments

Comments
 (0)