xbps-src: cd to $MASTERDIR when executing the signal handler.
This commit is contained in:
parent
4a1b862b3d
commit
a4330337e4
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@ sighandler_exit()
|
||||||
{
|
{
|
||||||
# Always unmount in case we failed before!
|
# Always unmount in case we failed before!
|
||||||
if [ -z "$in_chroot" ]; then
|
if [ -z "$in_chroot" ]; then
|
||||||
env MASTERDIR="${_MASTERDIR}" \
|
cd ${_MASTERDIR} && \
|
||||||
|
env MASTERDIR="${_MASTERDIR}" \
|
||||||
@@XBPS_INSTALL_LIBEXECDIR@@/xbps-src-chroot-helper umount
|
@@XBPS_INSTALL_LIBEXECDIR@@/xbps-src-chroot-helper umount
|
||||||
fi
|
fi
|
||||||
[ -n "$1" ] && exit $1
|
[ -n "$1" ] && exit $1
|
||||||
|
|
Loading…
Reference in a new issue