diff --git a/scripts/commons b/scripts/commons index 928a5497139b36bb6c5cef08106d19d00083a024..81d500f1c57e0a436ef777497e0720c4ab863fb6 100644 --- a/scripts/commons +++ b/scripts/commons @@ -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 }