some background check functions

This commit is contained in:
mfgbhatti 2022-01-24 20:12:25 +00:00
parent 52d8a4c3f0
commit 9128360362
1 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,14 @@ set_option() {
# else add option
echo "${1}=${2}" >> "$CONFIG_FILE"
}
# Adding global functions and variables to use in this script
check_root() {
if [[ "$(id -u)" != "0" ]]; then
echo -ne "Error: This script has to be run under the 'root' user!"
exit 1
fi
}
logo () {
# This will be shown on every set as user is progressing