scripts/ubuntu-setup.bash: only count universe as enabled if it's a binary repo and uncommented
Signed-off-by: maco <maco.m@ubuntu.com>
This commit is contained in:
parent
0ae0cef769
commit
2aaf16f7db
1 changed files with 2 additions and 1 deletions
|
|
@ -24,9 +24,10 @@ We need to do some actions as an ordinary user. We use sudo where necessary." &&
|
||||||
sudo -v >/dev/null 2>&1 || { echo $(whoami) has no sudo privileges ; exit 1; }
|
sudo -v >/dev/null 2>&1 || { echo $(whoami) has no sudo privileges ; exit 1; }
|
||||||
|
|
||||||
# Check if universal repository is enabled
|
# Check if universal repository is enabled
|
||||||
grep -i universe /etc/apt/sources.list > /dev/null || \
|
grep -ie '^deb .*universe' /etc/apt/sources.list > /dev/null || \
|
||||||
{ echo "Please enable universe repository" ; exit 1 ; }
|
{ echo "Please enable universe repository" ; exit 1 ; }
|
||||||
|
|
||||||
|
|
||||||
# Make sure that we only install the latest version of packages
|
# Make sure that we only install the latest version of packages
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue