Skip to content

Commit be38b46

Browse files
committed
chore: fixed code quality issues in shells used for preparing releases
Signed-off-by: Frédéric BIDON <[email protected]>
1 parent 446c594 commit be38b46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hack/tag_modules.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ declare -a all_tags
1616
cd "${root}"
1717
echo "Tagging all modules in repo ${root##*/}..."
1818

19-
while read module_location ; do
19+
while read -r module_location ; do
2020
relative_location=${module_location#"$root"/}
2121
relative_location=${relative_location#"$root"}
2222
module_dir=${relative_location%"/go.mod"}
@@ -31,5 +31,5 @@ while read module_location ; do
3131
git tag "${module_tag}"
3232
done < <(go list -f '{{.Dir}}' -m)
3333

34-
echo "Pushing tags to ${remote}: ${all_tags[@]}"
35-
git push "${remote}" ${all_tags[@]}
34+
echo "Pushing tags to ${remote}: ${all_tags[*]}"
35+
git push "${remote}" "${all_tags[@]}"

0 commit comments

Comments
 (0)