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,6 +39,7 @@ sighandler_exit()
{
# Always unmount in case we failed before!
if [ -z "$in_chroot" ]; then
cd ${_MASTERDIR} && \
env MASTERDIR="${_MASTERDIR}" \
@@XBPS_INSTALL_LIBEXECDIR@@/xbps-src-chroot-helper umount
fi