Add universe repository if missing on Ubuntu
This commit is contained in:
@@ -123,6 +123,13 @@ init() {
|
|||||||
[[ "$VERSION_ID" == "8" ]] && _base="buster"
|
[[ "$VERSION_ID" == "8" ]] && _base="buster"
|
||||||
fi
|
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
|
# Agnostic commands
|
||||||
bash_cmd(){ ifSudo bash -c "$@"; }
|
bash_cmd(){ ifSudo bash -c "$@"; }
|
||||||
rm_cmd(){ ifSudo rm -rf "$@"; }
|
rm_cmd(){ ifSudo rm -rf "$@"; }
|
||||||
|
|||||||
Reference in New Issue
Block a user