Bash_Scripts/Templates/Functions/Check-Root.bash
Price Hiller 1bdb2ad075 Copyright
2021-08-04 01:21:11 -05:00

14 lines
445 B
Bash
Executable File

#!/bin/bash
# Copyright 2021, Price Hiller - All Rights Reserved
#
# Copying, distribution, usage, or modification of this file or the following source code, via any
# method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com)
# The following file contains proprietary and confidential content
#
check_root() {
[[ "$(id -u)" = 0 ]] || (echo "Root permissions required, exiting" && exit 1)
}