Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes misleading "No such file or directory" syntax errors from output files #2688

Merged
8 changes: 5 additions & 3 deletions scripts/exglobal_diag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,11 @@ EOFdiag
# Restrict diagnostic files containing rstprod data
rlist="conv_gps conv_ps conv_pw conv_q conv_sst conv_t conv_uv saphir"
for rtype in $rlist; do
set +e
${CHGRP_CMD} *${rtype}*
${STRICT_ON:-set -e}
for rfile in *"${rtype}"*; do
if [[ -s "${rfile}" ]]; then
${CHGRP_CMD} "${rfile}"
fi
done
done

# If requested, create diagnostic file tarballs
Expand Down
Loading