fix sudo
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
set -e
|
||||
|
||||
# Ensure the script is run as root
|
||||
if [ $EUID -ne 0 ] then
|
||||
echo "❌ This script must be run as root. Please use sudo."
|
||||
exit 1
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "You must be root to do this." 1>&2
|
||||
exit 100
|
||||
fi
|
||||
|
||||
# Set your target disk here
|
||||
|
||||
Reference in New Issue
Block a user