From 0ab30e3ac0604910f95abcc94249f91bf535b70b Mon Sep 17 00:00:00 2001 From: Hemi03 <55916049+Hemi03@users.noreply.github.com> Date: Fri, 29 Mar 2024 05:45:36 +0100 Subject: [PATCH] fix: error with space in search key --- scripts/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config b/scripts/config index 55c0d9b..16cf9e2 100644 --- a/scripts/config +++ b/scripts/config @@ -103,7 +103,7 @@ set__readonly_dir() { if [[ -n "$readonly_dir" && $directory =~ $(echo "^($(echo $readonly_dir | sed 's/,\| /|/g'))$") ]]; then value="yes" fi - ynh_write_var_in_file --file=$install_dir/smb.conf.d/$directory.conf --key="read only" --value="$value" + ynh_write_var_in_file --file=$install_dir/smb.conf.d/$directory.conf --key=read[[:space:]]only --value="$value" done ynh_app_setting_set $app readonly_dir "$readonly_dir" write_smb_conf