readded udpated scripts directory

This commit is contained in:
tomit4 2022-06-09 12:59:03 -07:00
parent cd053a412a
commit f3117c81d9
84 changed files with 3210 additions and 0 deletions

9
scripts/source_functions.sh Executable file
View file

@ -0,0 +1,9 @@
# This file is meant to be exported, or otherwise known in bash as "sourced" in another file.
# We can simply define a function here called check_root() that when invoked will check to see if the file is being executed as root.
check_root() {
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
}