diff options
Diffstat (limited to 'subr/rtl_fetch.subr')
-rw-r--r-- | subr/rtl_fetch.subr | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/subr/rtl_fetch.subr b/subr/rtl_fetch.subr index e93d69eb..1fd72e99 100644 --- a/subr/rtl_fetch.subr +++ b/subr/rtl_fetch.subr @@ -1,11 +1,12 @@ # -# set +o errexit -o noglob is assumed. +# set +o errexit -o noglob -o nounset is assumed. # exp_rtl_fetch_url_git() { local _tgtdir="${1}" _subdir="${2}" _url="${3}" _branch="${4}" \ _oldpwd=""; - (set -o errexit -o noglob; trap "rm -f \"${BUILD_DLCACHEDIR}/${_subdir%%[/]}.fetching\"" EXIT; + (set -o errexit -o noglob -o nounset; + trap "rm -f \"${BUILD_DLCACHEDIR}/${_subdir%%[/]}.fetching\"" EXIT; while true; do if flock -E 622 -w 3600 4; then break; @@ -67,7 +68,8 @@ rtl_fetch_url_wget() { _target_fname="$(rtl_basename "${_url}")"; fi; _url_dst="${BUILD_DLCACHEDIR}/${_target_fname}"; - (set -o errexit -o noglob; trap "_rc=\"\${?}\" ;rm -f \"${_url_dst}.fetching\"; exit \"\${_rc}\";" EXIT; + (set -o errexit -o noglob -o nounset; + trap "_rc=\"\${?}\" ;rm -f \"${_url_dst}.fetching\"; exit \"\${_rc}\";" EXIT; while true; do if flock -E 622 -w 3600 4; then break; |