ubuntu check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user