From 5f337ec66c1727bc9ba8fbc06001e62e3119d3b4 Mon Sep 17 00:00:00 2001 From: Szymon Kolano Date: Sat, 24 Aug 2024 09:13:20 +0200 Subject: [PATCH] ubuntu check --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index c9ae8c7..4cf54cb 100644 --- a/install.sh +++ b/install.sh @@ -23,10 +23,15 @@ check_system() { if [ -f /etc/os-release ]; then . /etc/os-release if [ "$NAME" = "Ubuntu" ] && [ "$VERSION_ID" = "22.04" ]; then + : # Pusta instrukcja (no-op) else echo "BŁĄD: Skrypt wspiera jedynie Ubuntu 22.04 LTS" exit 1 fi + else + echo "BŁĄD: Nie można znaleźć pliku /etc/os-release" + exit 1 + fi } check_system