From 92195ea9216f1d7f9707f376892c727cea988906 Mon Sep 17 00:00:00 2001 From: MaxymVlasov Date: Tue, 4 Oct 2022 18:46:38 +0300 Subject: [PATCH] f --- hooks/tfupdate.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hooks/tfupdate.sh b/hooks/tfupdate.sh index 929d2e825..d38bcffb1 100755 --- a/hooks/tfupdate.sh +++ b/hooks/tfupdate.sh @@ -60,7 +60,9 @@ function per_dir_hook_unique_part { for i in $(seq "$start" "$end"); do quoted_var+="${elements[i]} " done - expand_args+=( "$quoted_var" ) + quoted_var2=${quoted_var#'"'} + quoted_var2=${quoted_var2%'" '} + expand_args+=( "$quoted_var2" ) for i in $(seq $((end+1)) $((${#elements[@]}-1))); do expand_args+=( "${elements[i]}" ) @@ -93,7 +95,9 @@ function per_dir_hook_unique_part { for i in $(seq "$start" "$end"); do quoted_var+="${elements[i]} " done - expand_args+=( "$quoted_var" ) + quoted_var2=${quoted_var#"'"} + quoted_var2=${quoted_var2%"' "} + expand_args+=( "$quoted_var2" ) for i in $(seq $((end+1)) $((${#elements[@]}-1))); do expand_args+=( "${elements[i]}" )