From 353d54ac7bfad08c8af5e8c3700d2e3f1156abf5 Mon Sep 17 00:00:00 2001 From: Kayou Date: Wed, 1 May 2019 11:22:49 +0200 Subject: [PATCH] Remove double [[ --- scripts/restore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index 6d49e73..3e73a41 100644 --- a/scripts/restore +++ b/scripts/restore @@ -200,14 +200,14 @@ ynh_replace_string --match_string=__CLI_PORT__ --replace_string=$cli_port --targ public_ip4="$(curl ip.yunohost.org)" || true public_ip6="$(curl ipv6.yunohost.org)" || true -if [[ -n "$public_ip4" ]] && ynh_validate_ip4 --ip_address="$public_ip4" +if [ -n "$public_ip4" ] && ynh_validate_ip4 --ip_address="$public_ip4" then ynh_replace_string --match_string='__IPV4__' --replace_string="$public_ip4" --target_file="$coturn_config_path" else ynh_replace_string --match_string='__IPV4__,' --replace_string="" --target_file="$coturn_config_path" fi -if [[ -n "$public_ip6" ]] && ynh_valide_ip6 --ip_address="$public_ip6" +if [ -n "$public_ip6" ] && ynh_valide_ip6 --ip_address="$public_ip6" then ynh_replace_string --match_string='__IPV6__' --replace_string="$public_ip6" --target_file="$coturn_config_path" else