This commit is contained in:
Andras Bacsai 2023-05-03 09:00:57 +02:00
parent a6fd3f102d
commit a3517d28fa

View File

@ -11,7 +11,7 @@ OS_TYPE=$(cat /etc/os-release | grep -w "ID" | cut -d "=" -f 2 | tr -d '"')
OS_VERSION=$(cat /etc/os-release | grep -w "VERSION_ID" | cut -d "=" -f 2 | tr -d '"')
LATEST_VERSION=$(curl --silent https://get.coollabs.io/versions.json | grep -i version | sed -n '2p' | xargs | awk '{print $2}' | tr -d ',')
if [ "$EUID" -ne 0 ]; then
if [ $EUID -ne 0 ]; then
echo "Please run as root"
exit
fi