changed root check
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
#!/bin/ash
|
||||
|
||||
if [ "$EUID" -ne 0 ]
|
||||
then
|
||||
echo "Please run as root"
|
||||
exit
|
||||
if ! [ $(id -u) = 0 ]; then
|
||||
echo "Please run as root!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
apk add --no-cache cfdisk e2fsprogs-extra
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
#!/bin/ash
|
||||
|
||||
if [ "$EUID" -ne 0 ]
|
||||
then
|
||||
echo "Please run as root"
|
||||
exit
|
||||
if ! [ $(id -u) = 0 ]; then
|
||||
echo "Please run as root!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p /home/akanealw/scripts > /dev/null 2>&1
|
||||
|
||||
Reference in New Issue
Block a user