Skip to content
Snippets Groups Projects
Commit 4013f04d authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Fixed a grep call.

parent 0bacf3f5
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ apt-get install -y aptitude apt-transport-https
#apt-get dist-upgrade -y
# modify sources.list to use ubicast cache
if ( ! grep ${APT_CACHE_HOST} /etc/apt/sources.list ); then
if ( ! grep "${APT_CACHE_HOST}" /etc/apt/sources.list >/dev/null ); then
echo "Updating sources.list to use cache ${APT_CACHE_HOST}."
sed -i "s@http://@http://${APT_CACHE_HOST}/@" /etc/apt/sources.list
fi
......
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