diff --git a/jobs/JGLOBAL_PREP_OBS_AERO b/jobs/JGLOBAL_PREP_OBS_AERO index 08eac8f141..30a5770fef 100755 --- a/jobs/JGLOBAL_PREP_OBS_AERO +++ b/jobs/JGLOBAL_PREP_OBS_AERO @@ -37,7 +37,7 @@ fi ########################################## # Remove the Temporary working directory ########################################## -cd ${DATAROOT} -[[ ${KEEPDATA} = "NO" ]] && rm -rf ${DATA} +cd "${DATAROOT}" || exit +[[ "${KEEPDATA}" = "NO" ]] && rm -rf ${DATA} exit 0