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