summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-08-24 12:55:14 +0200
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-08-24 12:55:14 +0200
commitbb77a2ac90c0b3c805fa64c40e1fd7d6514ed91e (patch)
treef68b18bf4845a7b6555bd8bebd3068b66be9e008
parent54007ea6eeebd09573bccd4a5fcf48fa3750f928 (diff)
downloadmidipix_build-bb77a2ac90c0b3c805fa64c40e1fd7d6514ed91e.tar.bz2
midipix_build-bb77a2ac90c0b3c805fa64c40e1fd7d6514ed91e.tar.xz
subr/pkg_fetch_download.subr:pkg_fetch_download_clean_dlcache(): correctly silence cd(1)'s stderr.
-rw-r--r--subr/pkg_fetch_download.subr2
1 files changed, 1 insertions, 1 deletions
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}"} \