readded udpated scripts directory
This commit is contained in:
parent
cd053a412a
commit
f3117c81d9
84 changed files with 3210 additions and 0 deletions
9
scripts/source_functions.sh
Executable file
9
scripts/source_functions.sh
Executable 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue