Final fix for wo version

This commit is contained in:
VirtuBox
2019-08-17 14:24:11 +02:00
parent 97e31e0797
commit 11b4c0b046

View File

@@ -104,14 +104,16 @@ if [ -z "$(command -v curl)" ]; then
apt-get -y install curl -qq apt-get -y install curl -qq
fi fi
if [ -f ./setup.py ]; then
readonly wo_version_new=$(grep "version='" setup.py | awk -F "'" '{print$2}' 2>&1)
else
readonly wo_version_new=$(curl -sL https://wops.cc/setup.py 2>&1 | grep "version='" | awk -F "'" '{print$2}' 2>&1) readonly wo_version_new=$(curl -sL https://wops.cc/setup.py 2>&1 | grep "version='" | awk -F "'" '{print$2}' 2>&1)
fi
echo "" echo ""
wo_lib_echo "Welcome to WordOps install script v${wo_version_new}" wo_lib_echo "Welcome to WordOps install script v${wo_version_new}"
echo "" echo ""
### ###
# 1- Check whether lsb_release is installed, and if not, install it # 1- Check whether lsb_release is installed, and if not, install it
### ###