changed root check

This commit is contained in:
2024-03-04 19:34:30 -06:00
parent 833cdd74c3
commit e82c52baae
2 changed files with 6 additions and 8 deletions

View File

@@ -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

View File

@@ -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