Browse Source

Add root check (fixes #84)

pull/85/head
Weilbyte 3 years ago
parent
commit
e5581fc9c2
No known key found for this signature in database GPG Key ID: E1EB2BFCF73B5B9F
  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