From 1548063b6ac54affecccc19872b1ffeed64f0887 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Sun, 22 Mar 2020 13:44:01 +0100 Subject: Work out (most?) issues reported by shellcheck --- lib/actions/dist.bash | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/actions/dist.bash') diff --git a/lib/actions/dist.bash b/lib/actions/dist.bash index 3b06b4f..5da5e49 100644 --- a/lib/actions/dist.bash +++ b/lib/actions/dist.bash @@ -11,7 +11,7 @@ action() { info "Creating distribution contents at $WORKDIR" - cd -- "$BASEDIR" + chgdir "$BASEDIR" # Include files from this project for file in $(git ls-files) @@ -26,7 +26,7 @@ action() { done # Add a MANIFEST.txt - cd -- "$WORKDIR" + chgdir "$WORKDIR" find . > MANIFEST.txt # Tar it all up into a distribution tarball @@ -35,10 +35,13 @@ action() { local tarball="$BASEDIR/dist/rakudo-star-$version.tar.gz" mkdir -p -- "$(dirname "$tarball")" - cd -- "$BASEDIR/tmp" + chgdir "$BASEDIR/tmp" tar czf "$tarball" "rakudo-star-$version" + # TODO: Create checksums + # TODO: Create PGP signature + info "Distribution tarball available at $tarball" } -- cgit v1.1