Skip to content

Commit d28b232

Browse files
Tim Malmströmoreflow
authored andcommitted
replacing underscore with dash in output names
1 parent 0e5378c commit d28b232

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

release/github.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ copy_go_binaries() {
3838

3939
while IFS= read -r line ; do
4040
# Parses out the "Outputs" and copies them to the output dir.
41-
local binary_output_path=$(echo "$line" | sed -n 's/Outputs: \[\(.*\)\]/\1/p')
41+
local binary_output_path=$(echo "$line" | sed -n 's/^.*Outputs: \[\(.*\)\]/\1/p')
4242
if [[ ! -z "$binary_output_path" ]]; then
4343
# Ignores errors from "cp" since aquery will include some binaries besides
4444
# the expected tools. This script later validates that all required binaries
@@ -93,7 +93,9 @@ upload_file() {
9393
}
9494

9595
for binary_name in "${all_binary_names[@]}"; do
96-
upload_file "$BIN_DIR/$binary_name" "$binary_name"
96+
# Output should contain dashes instead of underscores.
97+
output_name=${binary_name//_/-}
98+
upload_file "$BIN_DIR/$binary_name" "$output_name"
9799
done
98100

99101
rm -rf $BIN_DIR

0 commit comments

Comments
 (0)