Add sudo check
This commit is contained in:
parent
69bd524da3
commit
c64ac66d0e
1 changed files with 6 additions and 0 deletions
|
|
@ -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 '| - ._ _ _._ - ._ _. _ '
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue