Commit 46cf9654 authored by Laurent Peuch's avatar Laurent Peuch

[enh] don't break if /etc/apt/sources.list.d/yunohost.list doesn't exists

parent 1d5920d1
......@@ -3,5 +3,7 @@ RENEW_CERT_PATH=/opt/neutrinet/renew_cert
get_out_of_testing() {
set -e
sudo sed -ri 's#^(deb http://repo\.yunohost\.org/debian[/]? jessie) (stable )?testing#\1 stable#g' /etc/apt/sources.list.d/yunohost.list
if [ -e /etc/apt/sources.list.d/yunohost.list ]; then
sudo sed -ri 's#^(deb http://repo\.yunohost\.org/debian[/]? jessie) (stable )?testing#\1 stable#g' /etc/apt/sources.list.d/yunohost.list
fi
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment