Update duokai.sh

This commit is contained in:
smeb y 2024-03-18 17:17:18 +08:00 committed by GitHub
parent e4b2e3422b
commit 0abf37f396
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,7 +3,7 @@
# 检查是否以root用户运行脚本 # 检查是否以root用户运行脚本
if [ "$(id -u)" != "0" ]; then if [ "$(id -u)" != "0" ]; then
echo "此脚本需要以root用户权限运行。" echo "此脚本需要以root用户权限运行。"
echo "请尝试使用 'sudo -i' 命令切换到root用户然后再次运行此脚本。" echo "请尝试使用 'su' 命令切换到root用户然后再次运行此脚本。"
exit 1 exit 1
fi fi