Enable universe repository on Ubuntu for jq package

This commit is contained in:
Kadah 2018-10-04 15:22:56 -07:00 committed by GitHub
parent e7d649ff4f
commit 0694e5dc74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,12 @@ source /tmp/msmcommon.sh && rm -f /tmp/msmcommon.sh
function update_system_packages() {
install_log "Updating sources"
if [ -f /etc/os-release ]; then
. /etc/os-release
if [ $NAME == 'Ubuntu' ]; then
sudo add-apt-repository universe || install_error "Couldn't enable universe repository"
fi
fi
sudo apt-get update || install_error "Couldn't update package list"
sudo apt-get upgrade || install_error "Couldn't upgrade packages"
}