Browse Source

Merge pull request #85 from Weilbyte/Weilbyte/84

Add root check
pull/86/head
Weilbyte 4 years ago
committed by GitHub
parent
commit
c89ccaeab3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      PVEDiscordDark.sh

5
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;

Loading…
Cancel
Save