ubuntu check
This commit is contained in:
@@ -23,10 +23,15 @@ check_system() {
|
|||||||
if [ -f /etc/os-release ]; then
|
if [ -f /etc/os-release ]; then
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
if [ "$NAME" = "Ubuntu" ] && [ "$VERSION_ID" = "22.04" ]; then
|
if [ "$NAME" = "Ubuntu" ] && [ "$VERSION_ID" = "22.04" ]; then
|
||||||
|
: # Pusta instrukcja (no-op)
|
||||||
else
|
else
|
||||||
echo "BŁĄD: Skrypt wspiera jedynie Ubuntu 22.04 LTS"
|
echo "BŁĄD: Skrypt wspiera jedynie Ubuntu 22.04 LTS"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo "BŁĄD: Nie można znaleźć pliku /etc/os-release"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
check_system
|
check_system
|
||||||
|
|||||||
Reference in New Issue
Block a user