From 054569c3640b899725dd2cdb36f68ecc8d055d24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Wed, 5 Jan 2022 20:20:21 +0100 Subject: [PATCH] xbps-src: correctly change working directory for post_fetch --- common/xbps-src/libexec/xbps-src-dofetch.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/common/xbps-src/libexec/xbps-src-dofetch.sh b/common/xbps-src/libexec/xbps-src-dofetch.sh index f7100cbcab4..07aef66ba72 100755 --- a/common/xbps-src/libexec/xbps-src-dofetch.sh +++ b/common/xbps-src/libexec/xbps-src-dofetch.sh @@ -48,6 +48,7 @@ else run_pkg_hooks "do-fetch" fi +cd ${XBPS_BUILDDIR} || msg_error "$pkgver: cannot access wrksrc directory [$wrksrc]\n" # if templates defines post_fetch(), use it. if declare -f post_fetch >/dev/null; then run_func post_fetch