We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 446c594 commit be38b46Copy full SHA for be38b46
hack/tag_modules.sh
@@ -16,7 +16,7 @@ declare -a all_tags
16
cd "${root}"
17
echo "Tagging all modules in repo ${root##*/}..."
18
19
-while read module_location ; do
+while read -r module_location ; do
20
relative_location=${module_location#"$root"/}
21
relative_location=${relative_location#"$root"}
22
module_dir=${relative_location%"/go.mod"}
@@ -31,5 +31,5 @@ while read module_location ; do
31
git tag "${module_tag}"
32
done < <(go list -f '{{.Dir}}' -m)
33
34
-echo "Pushing tags to ${remote}: ${all_tags[@]}"
35
-git push "${remote}" ${all_tags[@]}
+echo "Pushing tags to ${remote}: ${all_tags[*]}"
+git push "${remote}" "${all_tags[@]}"
0 commit comments