hide apt-key output

This commit is contained in:
VirtuBox
2019-11-05 16:17:33 +01:00
parent 914f049852
commit e4daf59803

View File

@@ -631,7 +631,7 @@ wo_init() {
if [ -z "$wo_travis" ]; then
# import easyengine opensusebuildservice gpg key to avoid issues with packages update
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys 3050ac3cd2ae6f03
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys 3050ac3cd2ae6f03 > /dev/null 2>&1
if ! {
apt-get update --allow-releaseinfo-change -qq >/dev/null 2>&1
}; then
@@ -641,10 +641,10 @@ wo_init() {
apt-get -y install curl -qq >/dev/null 2>&1
fi
if ! command_exists lsb_release; then
apt-get install lsb-release -qq > /dev/null 2>&1
apt-get install lsb-release -qq >/dev/null 2>&1
fi
if ! command_exists jq; then
apt-get install jq -qq > /dev/null 2>&1
apt-get install jq -qq >/dev/null 2>&1
fi
fi
if [ "$wo_force_install" = "y" ]; then
@@ -653,7 +653,7 @@ wo_init() {
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 -m 5 --retry 3 -sL https://api.github.com/repos/WordOps/WordOps/releases/latest 2>&1 | jq -r '.tag_name' )
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
echo ""