testing alpine scripts
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 update
|
||||
|
||||
Reference in New Issue
Block a user