xbps-src: correctly change working directory for post_fetch

This commit is contained in:
Piotr Wójcik 2022-01-05 20:20:21 +01:00
parent c4f322914c
commit 054569c364
1 changed files with 1 additions and 0 deletions

View File

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