diff options
Diffstat (limited to 'custom/lib/common.sh')
| -rw-r--r-- | custom/lib/common.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/custom/lib/common.sh b/custom/lib/common.sh index a41441d..2f8844e 100644 --- a/custom/lib/common.sh +++ b/custom/lib/common.sh @@ -42,7 +42,9 @@ log() { ############################# require_root() { - [[ $EUID -ne 0 ]] && error "This script must be run as root" + if [[ $EUID -ne 0 ]]; then + error "This script must be run as root" + fi } command_exists() { |
