From 5ab3b73ec0d597fa2021e958c7d4a0100c18a6e3 Mon Sep 17 00:00:00 2001 From: everest Date: Wed, 9 Mar 2022 22:42:35 +0000 Subject: [PATCH] Update UPDATE-GLACIER.sh --- UPDATE-GLACIER.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/UPDATE-GLACIER.sh b/UPDATE-GLACIER.sh index 589c5a1..4aaa796 100644 --- a/UPDATE-GLACIER.sh +++ b/UPDATE-GLACIER.sh @@ -1,5 +1,11 @@ #!/bin/sh +# Require the script to be run as root +if [[ $(/usr/bin/id -u) -ne 0 ]]; then + echo "[ X ] Please run Glacier update script as root." + exit +fi + echo "[ i ] Removing outdated binaries..." rm /bin/glacier-install rm /bin/glacier-update