From 23e2c5b2ed97d1749d5dc528a036d30bfb9e9f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=95=E3=81=95?= <91324887+sasa8810@users.noreply.github.com> Date: Sun, 31 Dec 2023 07:51:41 +0900 Subject: [PATCH] Update downr1n.sh --- downr1n.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/downr1n.sh b/downr1n.sh index b07a8ce..4e07bea 100755 --- a/downr1n.sh +++ b/downr1n.sh @@ -7,8 +7,10 @@ if [ "$(uname)" == "Linux" ]; then exec sudo ./downr1n.sh $@ fi else - echo "Please don't run as root on macOS. It just breaks permissions." - exit 1 + if [ "$EUID" -e 0 ]; then + echo "Please don't run as root on macOS. It just breaks permissions." + exit 1 + fi fi mkdir -p logs