We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43a875d commit ee405b7Copy full SHA for ee405b7
tests/local/utils/attach_all_plots.bash
@@ -21,9 +21,8 @@ REPO=NCAR/wrf_hydro_nwm_public
21
22
cd $diffs
23
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
+# if $diffs directory is not empty, attach files in it
+if [[ `ls -1 ./` ]]
+then
+ python $cwd/attach_plots_to_pr.py -r $REPO -p $PR -d -t "$TOKEN" --title "$title" ./*
+fi
0 commit comments