xbps-src: cd to $MASTERDIR when executing the signal handler.

This commit is contained in:
Juan RP 2010-12-16 00:27:42 +01:00
parent 4a1b862b3d
commit a4330337e4

View file

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