We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d6faa3 commit 97348b1Copy full SHA for 97348b1
scripts/build_go_slim.sh
@@ -83,7 +83,12 @@ dest_dir="$(realpath "$dest_dir")"
83
# Copy the binaries to the site directory.
84
cd "$(dirname "$output_path")"
85
for f in ./coder-slim_*; do
86
- f="${f#./}"
87
- dest="$dest_dir/${f//-slim_$version/}"
+ # Remove ./ prefix
+ name="${f#./}"
88
+ # Remove "-slim_$version"
89
+ truncated="${name//-slim_$version/}"
90
+ # Replace underscores with hyphens
91
+ hyphenated="${truncated//_/-}"
92
+ dest="$dest_dir/$hyphenated"
93
cp "$f" "$dest"
94
done
0 commit comments