From b1cf562bb951bfbd4b4a7e4f5a8ea88c2140a90a Mon Sep 17 00:00:00 2001 From: kirin10000 <57820613+kirin10000@users.noreply.github.com> Date: Thu, 22 Oct 2020 16:21:37 +0800 Subject: [PATCH] Update install-release.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 我也不是很懂这个东西( --- install-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-release.sh b/install-release.sh index a3bf72f..aca1d51 100644 --- a/install-release.sh +++ b/install-release.sh @@ -46,7 +46,7 @@ systemd_cat_config() { check_if_running_as_root() { # If you want to run as another user, please modify $UID to be owned by this user - if [[ "$UID" -ne '0' ]]; then + if [[ "$EUID" -ne '0' ]]; then echo "error: You must run this script as root!" exit 1 fi