Skip to content

Commit

Permalink
chore: fixed release script.
Browse files Browse the repository at this point in the history
  • Loading branch information
odkr committed Jan 4, 2022
1 parent cce110a commit 8adda67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/release-publish
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ tag="$(
git tag --list 'v*' --sort version:refname |
tail -n1 |
sed 's/^v//'
)" && [ "$last" ] ||
)" && [ "$tag" ] ||
panic 'failed to determine current release.'

release="$(sed -n 's/-- *@release *//p;' "$filter")" && [ "$release" ] ||
Expand Down Expand Up @@ -132,7 +132,7 @@ done <"$manifest"

warn -e "$SMSO" 'testing release ...'

test/script/test-pandoc-vers
test/scripts/test-pandoc-vers

warn -e "$SMSO" 'testing under real-world conditions ...'

Expand All @@ -145,6 +145,7 @@ name="$(basename "$REPO")" && [ "$name" ] ||
warn -e "$SMSO" 'packaging release ...'

(
manifest="$REPO/$manifest"
cd -P "$TEMP_DIR" || exit 69
relname="$name-$tag"

Expand All @@ -166,8 +167,7 @@ warn -e "$SMSO" 'packaging release ...'
esac
[ -e "$fname" ] ||
panic -s 66 '%s: line %d: %s: no such file or directory.' \
"$manifest" "$lineno" \
"$fname"
"$manifest" "$lineno" "$fname"
dirname="$(dirname "$fname")" && [ "$dirname" ] ||
panic '%s: line %d: %s: failed to get directory.' \
"$manifest" "$lineno" \
Expand Down

0 comments on commit 8adda67

Please sign in to comment.