Bash_Scripts/Templates/Functions/Check-Root.bash
2021-08-03 18:24:40 -05:00

7 lines
111 B
Bash
Executable File

#!/bin/bash
check_root() {
[[ "$(id -u)" = 0 ]] || (echo "Root permissions required, exiting" && exit 1)
}