Add sudo check

This commit is contained in:
Ceres 2025-09-26 18:13:26 +01:00
parent 69bd524da3
commit c64ac66d0e

View file

@ -1,5 +1,11 @@
#!/bin/bash #!/bin/bash
if [ $(id -u) -ne 0 ]
then echo Please run this script as root or using sudo!
exit
fi
# 0 . 1 . 2 . 3 . 4 . 5 . 6 . 7 . 8 # 0 . 1 . 2 . 3 . 4 . 5 . 6 . 7 . 8
echo '| ' echo '| '
echo '| - ._ _ _._ - ._ _. _ ' echo '| - ._ _ _._ - ._ _. _ '