Skip to content

Commit

Permalink
Changed from printf to echo -n in release script
Browse files Browse the repository at this point in the history
Not sure why but `printf` was giving me `Broken pipe` error while `echo -n` not, so let's stick with it since it seems a bit more robust to some weird system problem.
  • Loading branch information
maoueh committed Apr 6, 2023
1 parent 15ab74c commit 92c627e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ main() {

# It's important to work on trimmed content to determine end because `head -n$end_at`
# below is applied to trimmed content and thus line number found must be relative to it
end_at=$(printf "$changelod_trimmed" | grep -n -m 1 -E '^## .+' | cut -f 1 -d :)
printf "$changelod_trimmed" | head -n$end_at | skip -2 > .release_notes.md
end_at=$(echo -n "$changelod_trimmed" | grep -n -m 1 -E '^## .+' | cut -f 1 -d :)
echo -n "$changelod_trimmed" | head -n$end_at | skip -2 > .release_notes.md

args="--timeout=60m --rm-dist --release-notes=.release_notes.md"
if [[ "$publish" == "false" ]]; then
Expand Down

0 comments on commit 92c627e

Please sign in to comment.