xbps-src: correctly change working directory for post_fetch
This commit is contained in:
parent
c4f322914c
commit
054569c364
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue