From 8ee45037d0cb4143f6297068ba0e78cbede6a6bc Mon Sep 17 00:00:00 2001 From: Peter Marquardt Date: Wed, 3 Mar 2021 09:38:00 +0100 Subject: [PATCH] build.sh: check folder permissions, not mountpoint-destination - circumvent rare race condition on initial mount --- tools/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build.sh b/tools/build.sh index 5b029d6..d9c9bfc 100755 --- a/tools/build.sh +++ b/tools/build.sh @@ -47,7 +47,7 @@ if [ ! -d "/package/pkg/$PKG" ]; then log_cmd chown build:build "/pkg/$PKG" fi -if [ "$(stat -c %U "/pkg/$PKG")" != "build" ] && [ -z "$opt_purge" ] ; then +if [ "$(stat -c %U "/pkg/$PKG/.")" != "build" ] && [ -z "$opt_purge" ] ; then echo "/pkg/$PKG is no longer owned by build user" echo "rerun with --purge if you want to build from scratch" exit 1