Update install-release.sh

我也不是很懂这个东西(
pull/174/head
kirin10000 2020-10-22 16:21:37 +08:00 committed by GitHub
parent c3fa5d1217
commit b1cf562bb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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