mirror of
https://github.com/aljazceru/omakub.git
synced 2025-12-18 21:14:21 +01:00
19 lines
531 B
Bash
19 lines
531 B
Bash
#!/bin/bash
|
|
|
|
if [ ! -f /etc/os-release ]; then
|
|
echo "$(tput setaf 1)Error: Unable to determine OS. /etc/os-release file not found."
|
|
echo "Installation stopped."
|
|
exit 1
|
|
fi
|
|
|
|
. /etc/os-release
|
|
|
|
# Check if running on Ubuntu 24.04 or higher
|
|
if [ "$ID" != "ubuntu" ] || [ $(echo "$VERSION_ID >= 24.04" | bc) != 1 ]; then
|
|
echo "$(tput setaf 1)Error: OS requirement not met"
|
|
echo "You are currently running: $ID $VERSION_ID"
|
|
echo "OS required: Ubuntu 24.04 or higher"
|
|
echo "Installation stopped."
|
|
exit 1
|
|
fi
|