From be8b7e4c9e3458ee2efe12a8ec59dc603abfaebd Mon Sep 17 00:00:00 2001 From: bryan Date: Thu, 2 Dec 2021 09:58:47 -0500 Subject: [PATCH] Add universe repository if missing on Ubuntu --- installJRMC | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/installJRMC b/installJRMC index 48cf7d6..73d92a0 100755 --- a/installJRMC +++ b/installJRMC @@ -122,6 +122,13 @@ init() { [[ "$VERSION_ID" == "7" ]] && _base="stretch" [[ "$VERSION_ID" == "8" ]] && _base="buster" fi + + # Make sure universe repo is installed on Ubuntu + if [[ "$ID" == "ubuntu" ]]; then + if ! grep ^deb /etc/apt/sources.list|grep -q universe; then + ifSudo add-apt-repository universe + fi + fi # Agnostic commands bash_cmd(){ ifSudo bash -c "$@"; }