updated root check command

This commit is contained in:
2024-03-04 20:36:26 -06:00
parent ba51d04b50
commit 0b18e216cb
4 changed files with 8 additions and 8 deletions

View File

@@ -1,8 +1,8 @@
#!/bin/ash
if ! [ $(id -u) = 0 ]; then
if [[ ! $(id -u) = 0 ]]; then
echo "Please run as root!"
exit 1
exit 1
fi
apk update

View File

@@ -1,8 +1,8 @@
#!/bin/ash
if ! [ $(id -u) = 0 ]; then
if [[ ! $(id -u) = 0 ]]; then
echo "Please run as root!"
exit 1
exit 1
fi
# edit repositories

View File

@@ -1,8 +1,8 @@
#!/bin/ash
if ! [ $(id -u) = 0 ]; then
if [[ ! $(id -u) = 0 ]]; then
echo "Please run as root!"
exit 1
exit 1
fi
apk update

View File

@@ -1,8 +1,8 @@
#!/bin/ash
if ! [ $(id -u) = 0 ]; then
if [[ ! $(id -u) = 0 ]]; then
echo "Please run as root!"
exit 1
exit 1
fi
apk add --no-cache cfdisk e2fsprogs-extra