From e84732fa4e6e830facc9d8f5fcbb5e4693bd35de Mon Sep 17 00:00:00 2001 From: farvardin Date: Mon, 6 Apr 2020 01:28:35 +0200 Subject: [PATCH] test --- scripts/install | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index df8069c..ac9e73a 100644 --- a/scripts/install +++ b/scripts/install @@ -198,13 +198,17 @@ ynh_replace_string --match_string="__YNH_LANG__" --replace_string="$language" ynh_replace_string --match_string="__YNH_LABEL__" --replace_string="$wiki" --target_file="$final_path/config.php" + +ynh_replace_string --match_string="__YNH_COLOR__" --replace_string="$color" --target_file="$final_path/templates/minimaxing/minimaxing.less" + # test if the color was correctly set (6 hexadecimal values) -if echo "$color" | grep -q -E '[A-Fa-f0-9]{6}' -then - ynh_replace_string --match_string="__YNH_COLOR__" --replace_string="$color" --target_file="$final_path/templates/minimaxing/minimaxing.less" -else - ynh_replace_string --match_string="__YNH_COLOR__" --replace_string="555555" --target_file="$final_path/templates/minimaxing/minimaxing.less" -fi + +#if echo "$color" | grep -q -E '[A-Fa-f0-9]{6}' +#then +# ynh_replace_string --match_string="__YNH_COLOR__" --replace_string="$color" --target_file="$final_path/templates/minimaxing/minimaxing.less" +#else +# ynh_replace_string --match_string="__YNH_COLOR__" --replace_string="555555" --target_file="$final_path/templates/minimaxing/minimaxing.less" +#fi lessc --js $final_path/templates/minimaxing/minimaxing.less > $final_path/templates/minimaxing/minimaxing.css