Updated scripts

This commit is contained in:
z3rOR0ne 2022-07-07 13:05:06 -07:00
parent eef4fdf99c
commit d0aead5a9c
14 changed files with 386 additions and 99 deletions

View file

@ -1,8 +1,12 @@
#!/bin/bash
if [[ "$(id -u)" -ne 0 ]]; then
myid=$(id -u)
echo "your userid is ${myid}"
if [[ $myid -ne 0 && $myid -ne 1000 ]]; then
echo "[ERROR] You must run this script as root!"
exit 0
elif [ $myid -eq 1000 ]; then
echo "You are ${USER}!"
else
echo "You are root!"
fi