Add avoid running as root blocker

This commit is contained in:
2026-01-12 14:08:55 -05:00
parent 78762f1a38
commit afb2db9648

View File

@@ -1,4 +1,11 @@
#!/bin/bash
#avoid running as root
NO_FORMAT="\e[0m"
C_RED="\e[38;5;9m"
if [ "$UID" = 0 ]; then
echo -e "${C_RED}This script cannot be run as root.${NO_FORMAT}"
exit 1
fi
#update local update db
yay -Syy
#install outdated dep from provision server