Fix small errors in install script
This commit is contained in:
8
install
8
install
@@ -650,10 +650,10 @@ wo_init() {
|
|||||||
apt-get -y install curl -qq >/dev/null 2>&1
|
apt-get -y install curl -qq >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
if ! command_exists lsb_release; then
|
if ! command_exists lsb_release; then
|
||||||
apt-get install lsb-release -qq
|
apt-get install lsb-release -qq > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
if ! command_exists jq; then
|
if ! command_exists jq; then
|
||||||
apt-get install jq -qq
|
apt-get install jq -qq > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ "$wo_force_install" = "y" ]; then
|
if [ "$wo_force_install" = "y" ]; then
|
||||||
@@ -662,11 +662,11 @@ wo_init() {
|
|||||||
if [ -f ./setup.py ]; then
|
if [ -f ./setup.py ]; then
|
||||||
readonly wo_version_new=$(grep "version='" setup.py | awk -F "'" '{print $2}' 2>&1)
|
readonly wo_version_new=$(grep "version='" setup.py | awk -F "'" '{print $2}' 2>&1)
|
||||||
else
|
else
|
||||||
readonly wo_version_new=$(curl -m 5 --retry 3 -sL https://api.github.com/repos/WordOps/WordOps/releases/latest | jq -r '.tag_name' 2>&1)
|
readonly wo_version_new=$(curl -m 5 --retry 3 -sL https://api.github.com/repos/WordOps/WordOps/releases/latest 2>&1 | jq -r '.tag_name' )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
wo_lib_echo "Welcome to WordOps install/update script v${wo_version_new}"
|
wo_lib_echo "Welcome to WordOps install/update script ${wo_version_new}"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user