From 8adda6795d33af04071a1bbe217f1a69649a8d6f Mon Sep 17 00:00:00 2001 From: Odin Kroeger Date: Tue, 4 Jan 2022 17:36:17 +0100 Subject: [PATCH] chore: fixed release script. --- scripts/release-publish | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/release-publish b/scripts/release-publish index a8180e8..5b7f550 100755 --- a/scripts/release-publish +++ b/scripts/release-publish @@ -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" ] || @@ -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 ...' @@ -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" @@ -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" \