Skip to content

Commit

Permalink
stat command changed (#1750)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne authored Feb 12, 2024
1 parent cc61847 commit 3d3a6d0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ethd
Original file line number Diff line number Diff line change
Expand Up @@ -3498,13 +3498,7 @@ fi

cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
# Use this to make sure root doesn't end up owning files
if [[ "$OSTYPE" == "darwin"* ]]; then
# This is a macOS-ism
# shellcheck disable=SC2016
OWNER=$(stat -f '$Su' .)
else
OWNER=$(stat -c '%U' .)
fi
OWNER=$(stat --format=%U .)

if [ "${OWNER}" == "root" ]; then
echo "Please install Eth Docker as a non-root user."
Expand Down

0 comments on commit 3d3a6d0

Please sign in to comment.