Browse Source
Merge pull request #85 from Weilbyte/Weilbyte/84
Add root check
pull/86/head
Weilbyte
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
PVEDiscordDark.sh
|
|
@ -20,6 +20,11 @@ BASE_URL="https://raw.githubusercontent.com/$REPO/$TAG" |
|
|
|
#endregion Consts |
|
|
|
|
|
|
|
#region Prerun checks |
|
|
|
if [[ $EUID -ne 0 ]]; then |
|
|
|
echo -e >&2 "${BRED}Root privileges are required to perform this operation${REG}"; |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
|
|
|
|
hash sed 2>/dev/null || { |
|
|
|
echo -e >&2 "${BRED}sed is required but missing from your system${REG}"; |
|
|
|
exit 1; |
|
|
|