Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxymVlasov committed Oct 4, 2022
1 parent 4d66089 commit 92195ea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions hooks/tfupdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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]}" )
Expand Down Expand Up @@ -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]}" )
Expand Down

0 comments on commit 92195ea

Please sign in to comment.