added testing script for checking debian version
This commit is contained in:
16
debian/version-check-testing.sh
vendored
Normal file
16
debian/version-check-testing.sh
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
read -d . VERSION < /etc/debian_version
|
||||
|
||||
if [ $VERSION -eq 11 ];
|
||||
then
|
||||
echo "Bullseye"
|
||||
elif [ $VERSION -eq 12 ];
|
||||
then
|
||||
echo "Bookworm"
|
||||
elif [ $VERSION -eq 13 ];
|
||||
then
|
||||
echo "Trixie"
|
||||
else
|
||||
echo "unknown version"
|
||||
fi
|
||||
Reference in New Issue
Block a user