diff --git a/PVEDiscordDark.sh b/PVEDiscordDark.sh index 9f765cd4005642ac061185e6293400e72b6ba4bd..95e4fbb12f1307a01ef5dfb79be937c70c562e1a 100644 --- a/PVEDiscordDark.sh +++ b/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;