[fix] missing brackets for testing saferemove output

This commit is contained in:
julienmalik 2016-02-25 12:18:01 +01:00
parent e93b036830
commit 8196717e96

View file

@ -67,7 +67,7 @@ if [ -f /etc/yunohost/installed ]; then
| sed 's|/etc/nginx/conf.d/||' \
| sed 's|.conf||')
[[ $domain_list =~ $domain ]] \
|| ($(sudo yunohost service saferemove -s nginx $file) == "True" \
|| ([[ $(sudo yunohost service saferemove -s nginx $file) == "True" ]] \
&& (rm -r /etc/nginx/conf.d/$domain.d || true))
done