hooks/pre-pkg: safely pass arguments to printf

This commit is contained in:
Cameron Nemo 2018-11-16 00:04:30 -08:00 committed by Enno Boland
parent ab9c308fd0
commit 61065bcb1f
1 changed files with 1 additions and 1 deletions

View File

@ -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
}