Add avoid running as root blocker
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user