From c1f701073dd6edc34423072e23e09231c7061b00 Mon Sep 17 00:00:00 2001 From: Yorick Date: Mon, 12 Feb 2024 14:40:36 +0000 Subject: [PATCH] stat command changed --- ethd | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ethd b/ethd index 0074862e..2fb78ce3 100755 --- a/ethd +++ b/ethd @@ -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."