ubuntu check

This commit is contained in:
Szymon Kolano
2024-08-24 09:13:20 +02:00
parent 974aeaccc8
commit 5f337ec66c

View File

@@ -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