From 61065bcb1f851620d69bbbb4e68c36e7d6195b0a Mon Sep 17 00:00:00 2001 From: Cameron Nemo Date: Fri, 16 Nov 2018 00:04:30 -0800 Subject: [PATCH] hooks/pre-pkg: safely pass arguments to printf --- common/hooks/pre-pkg/04-generate-runtime-deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/hooks/pre-pkg/04-generate-runtime-deps.sh b/common/hooks/pre-pkg/04-generate-runtime-deps.sh index d244a8495c..b5307ff822 100644 --- a/common/hooks/pre-pkg/04-generate-runtime-deps.sh +++ b/common/hooks/pre-pkg/04-generate-runtime-deps.sh @@ -41,7 +41,7 @@ store_pkgdestdir_rundeps() { -z "$($XBPS_UHELPER_CMD getpkgname ${_curdep} 2>/dev/null)" ]; then _curdep="${_curdep}>=0" fi - printf "${_curdep} " >> ${PKGDESTDIR}/rdeps + printf -- "${_curdep} " >> ${PKGDESTDIR}/rdeps done fi }