Final fix for wo version
This commit is contained in:
8
install
8
install
@@ -104,14 +104,16 @@ if [ -z "$(command -v curl)" ]; then
|
|||||||
apt-get -y install curl -qq
|
apt-get -y install curl -qq
|
||||||
fi
|
fi
|
||||||
|
|
||||||
readonly wo_version_new=$(curl -sL https://wops.cc/setup.py 2>&1 | grep "version='" | awk -F "'" '{print$2}' 2>&1)
|
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)
|
||||||
|
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
|
||||||
###
|
###
|
||||||
|
|||||||
Reference in New Issue
Block a user