diff --git a/makepackage b/makepackage index 40b4212c55a974e53d0cdf44f569135b2a4d0599..ce92145325abf1cf884f4350ef0fe94c8613af3f 100644 --- a/makepackage +++ b/makepackage @@ -188,8 +188,8 @@ fi } tmpumount(){ - grep $PWD/jails/$UPSTREAM-$ARCH/tmp /proc/mounts && return - umount $PWD/jails/$UPSTREAM-$ARCH/tmp && return + grep jails/$UPSTREAM-$ARCH/tmp /proc/mounts -q || return + umount jails/$UPSTREAM-$ARCH/tmp && return echo ERROR: could not umount tmpfs at jails/$UPSTREAM-$ARCH/tmp exit 1 }