Skip to content

Commit 1b0da2f

Browse files
committed
Remove version check
1 parent 2d56f99 commit 1b0da2f

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

install.sh

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,6 @@ display_help() {
2323
echo
2424
}
2525

26-
# Check Distro version
27-
if [ -f /etc/os-release ]; then
28-
OS_DISTRO=$(source /etc/os-release; echo ${PRETTY_NAME%% *})
29-
if [ $OS_DISTRO = "Debian" ]; then
30-
isDebian=true
31-
#determine if script is being run on bullseye or above
32-
read -d . DEBIAN_VERSION < /etc/debian_version
33-
if (( $DEBIAN_VERSION > 10 )); then
34-
echo Detected Debian version of Bullseye or above
35-
BULLSEYE=true
36-
else
37-
echo Older version of Debian detected
38-
BULLSEYE=false
39-
fi
40-
elif [ $OS_DISTRO = "Ubuntu" ]; then
41-
isUbuntu=true
42-
UBUNTU_VERSION=$(source /etc/os-release; echo ${VERSION_ID%% *} | cut -c1-2)
43-
if (( $UBUNTU_VERSION >= 22 )); then
44-
echo Detcted Ubuntu version of Jammy or above
45-
JAMMY=true
46-
else
47-
echo Older version of Ubuntu detected.
48-
JAMMY=false
49-
fi
50-
else
51-
echo "Unsupported OS detected. Recommended Debian 12 or Ubuntu 22.04"
52-
exit 1
53-
fi
54-
fi
55-
5626
#check if /etc/rpi-issue exists, if not set the install Args to be false
5727
if [ -f /etc/rpi-issue ]
5828
then

0 commit comments

Comments
 (0)