Skip to content

build.sh: check folder permissions, not mountpoint-destination #147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down