From bb77a2ac90c0b3c805fa64c40e1fd7d6514ed91e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Tue, 24 Aug 2021 12:55:14 +0200 Subject: subr/pkg_fetch_download.subr:pkg_fetch_download_clean_dlcache(): correctly silence cd(1)'s stderr. --- subr/pkg_fetch_download.subr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subr') diff --git a/subr/pkg_fetch_download.subr b/subr/pkg_fetch_download.subr index d6f300d8..7a89454e 100644 --- a/subr/pkg_fetch_download.subr +++ b/subr/pkg_fetch_download.subr @@ -6,7 +6,7 @@ pkg_fetch_download_clean_dlcache() { local _dlcachedir="${1}" _pkg_name="${2}" _pkg_fname="${3}" _pkg_urls_git="${4}"\ _fname="" _skipfl=0 _url_spec="" _url_subdir=""; - for _fname in $(cd "${_dlcachedir}/${_pkg_name}" && find \ + for _fname in $(cd "${_dlcachedir}/${_pkg_name}" 2>/dev/null && find \ -maxdepth 1 \ -mindepth 1 \ ${_pkg_fname:+-not -name "${_pkg_fname}"} \ -- cgit v1.2.3