Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions swiftbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
if [ "E`lsb_release -i --short`" = "EUbuntu" ]
then
UBUNTU_VERSION=`lsb_release -r --short`
if [ ${UBUNTU_VERSION//./} -gt 1804 ] && [ ${UBUNTU_VERSION//./} -lt 2004 ]
then
UBUNTU_VERSION="18.04"
fi
else
echo "This program only support Ubuntu. "
exit 255
Expand Down