get python ver also on python2

This commit is contained in:
Mario Fetka 2024-05-11 11:27:02 +02:00
parent bbdcb91d99
commit 92535047da
2 changed files with 4 additions and 4 deletions

View File

@ -7,12 +7,12 @@ echo -e "${DGN}Install Mystic to: ${BGN}$MYSTIC_DIR${CL}"
read -p "Press enter to continue" read -p "Press enter to continue"
msg_info "Starting ${APP} Installation" msg_info "Starting ${APP} Installation"
apt install -y python3 &>/dev/null apt install -y python3 python2 &>/dev/null
PYTHON3_VER=$(python3 $MSTEMPDIR/mystic/mystic/python_ver.py) PYTHON3_VER=$(python3 $MSTEMPDIR/mystic/mystic/python_ver.py)
PYTHON2_VER=$(python2 $MSTEMPDIR/mystic/mystic/python_ver.py)
#apt install -y libpython${PYTHON3_VER} python2 libpython2.7 arj zip unrar dos2unix ${RARLAB} &>/dev/null apt install -y libpython${PYTHON3_VER} libpython${PYTHON2_VER} arj zip unrar dos2unix ${RARLAB} &>/dev/null
apt install -y libpython${PYTHON3_VER} python2 libpython2.7 arj zip unrar dos2unix ${RARLAB}
wget -N http://www.mysticbbs.com/${UPSTREAM}/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} -O $MSTEMPDIR/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} &>/dev/null wget -N http://www.mysticbbs.com/${UPSTREAM}/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} -O $MSTEMPDIR/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} &>/dev/null
rm -rf $MSTEMPDIR/mystic-${MYSTIC_VER} &>/dev/null rm -rf $MSTEMPDIR/mystic-${MYSTIC_VER} &>/dev/null
mkdir -p $MSTEMPDIR/mystic-${MYSTIC_VER} &>/dev/null mkdir -p $MSTEMPDIR/mystic-${MYSTIC_VER} &>/dev/null

View File

@ -1,3 +1,3 @@
import sys import sys
info = sys.version_info info = sys.version_info
print(info.major, "." ,info.minor, sep='') print(str(info.major) + "." + str(info.minor))