testing alpine scripts

This commit is contained in:
2024-03-04 19:33:09 -06:00
parent 34431c07dc
commit 833cdd74c3
5 changed files with 15 additions and 20 deletions

View File

@@ -1,9 +1,8 @@
#!/bin/bash
if [ "$EUID" -eq 0 ]
then
echo "Please do NOT run as root"
exit
if [ $(id -u) = 0 ]; then
echo "Please do NOT run as root!"
exit 1
fi
# add aliases