Update upgrade.sh

This commit is contained in:
pnetlabrepo
2023-02-07 01:50:57 -03:00
committed by GitHub
parent 5aec55c1d8
commit 5ec5ae079a

View File

@@ -5,13 +5,15 @@
# CONSTANTS
GREEN='\033[32m'
RED='\033[31m'
NO_COLOR='\033[0m'
ZIP_FILENAME=pnetlabv6_offline.zip
URL_ZIP_FILE=https://unetlab.cloud/api/raw/?path=/UNETLAB%20I/upgrades_pnetlab/extras/upgrade_to_ubuntu_20.04/pnetlabv6_offline.zip
lsb_release -r -s | grep -q 20.04
if [ $? -ne 0 ]; then
echo "Upgrade has been rejected!"
echo -e "${RED}Upgrade has been rejected${NO_COLOR}"
exit 0
fi