some background check functions
This commit is contained in:
parent
52d8a4c3f0
commit
9128360362
|
|
@ -23,6 +23,14 @@ set_option() {
|
||||||
# else add option
|
# else add option
|
||||||
echo "${1}=${2}" >> "$CONFIG_FILE"
|
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 () {
|
logo () {
|
||||||
# This will be shown on every set as user is progressing
|
# This will be shown on every set as user is progressing
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue