Bash_Scripts/Templates/Functions/Check-Root.bash
2021-08-17 20:21:33 -05:00

6 lines
110 B
Bash
Executable File

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