Skip to content
Snippets Groups Projects
Commit 2aaf16f7 authored by Vincent Batts's avatar Vincent Batts Committed by maco
Browse files

scripts/ubuntu-setup.bash: only count universe as enabled if it's a binary repo and uncommented


Signed-off-by: default avatarmaco <maco.m@ubuntu.com>
parent 0ae0cef7
No related branches found
No related tags found
No related merge requests found
......@@ -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; }
# 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 ; }
# Make sure that we only install the latest version of packages
sudo apt-get update
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment