diff --git a/my-distro-devuan-32/build.sh b/my-distro-devuan-32/build.sh index b6371995..022aee55 100755 --- a/my-distro-devuan-32/build.sh +++ b/my-distro-devuan-32/build.sh @@ -15,8 +15,8 @@ build="$(pwd)" # Create the build folder, move into it removing stale mountpoints and files there. -[ -e fusato ] && [ ! -d fusato ] && rm -f fusato || [ ! -e fusato ] && mkdir fusato -cd fusato +[ -e build ] && [ ! -d build ] && rm -f build || [ ! -e build ] && mkdir build +cd build umount $(mount | grep "${PWD}/chroot" | tac | cut -f3 -d" ") 2>/dev/null for i in * .build ; do [ $i = cache ] && continue || rm -rf $i ; done