updated root check command
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/ash
|
#!/bin/ash
|
||||||
|
|
||||||
if ! [ $(id -u) = 0 ]; then
|
if [[ ! $(id -u) = 0 ]]; then
|
||||||
echo "Please run as root!"
|
echo "Please run as root!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
apk update
|
apk update
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/ash
|
#!/bin/ash
|
||||||
|
|
||||||
if ! [ $(id -u) = 0 ]; then
|
if [[ ! $(id -u) = 0 ]]; then
|
||||||
echo "Please run as root!"
|
echo "Please run as root!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# edit repositories
|
# edit repositories
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/ash
|
#!/bin/ash
|
||||||
|
|
||||||
if ! [ $(id -u) = 0 ]; then
|
if [[ ! $(id -u) = 0 ]]; then
|
||||||
echo "Please run as root!"
|
echo "Please run as root!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
apk update
|
apk update
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/ash
|
#!/bin/ash
|
||||||
|
|
||||||
if ! [ $(id -u) = 0 ]; then
|
if [[ ! $(id -u) = 0 ]]; then
|
||||||
echo "Please run as root!"
|
echo "Please run as root!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
apk add --no-cache cfdisk e2fsprogs-extra
|
apk add --no-cache cfdisk e2fsprogs-extra
|
||||||
|
|||||||
Reference in New Issue
Block a user