From 6176d566f2ecf0c97a2aa545626ccfe26ebb8e79 Mon Sep 17 00:00:00 2001 From: Charadon Date: Tue, 26 Jul 2022 05:50:10 -0400 Subject: Added a couple better defaults --- dscip | 4 ++-- post.sh | 7 ++++--- pre.sh | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/dscip b/dscip index d66be1f..682ebe7 100755 --- a/dscip +++ b/dscip @@ -48,11 +48,11 @@ echo "$$" > "$WORKING_DIRECTORY/LOCK" build () { # Remove old output - rm -f output.txt + rm -f "$WORKING_DIRECTORY"/output.txt # Print variables # { echo "################################################################################"; - date; + printf "%s" "$(date) | $DSCIP_NAME" echo "################################################################################"; echo "DSCIP_GITREPO=$DSCIP_GITREPO"; echo "DSCIP_GITMODE=$DSCIP_GITMODE"; diff --git a/post.sh b/post.sh index 93b324e..8d5404b 100755 --- a/post.sh +++ b/post.sh @@ -6,7 +6,8 @@ set -eu # Example below. # # TAR up the program. # -bsdtar -a -cf program-$CURRENT_COMMIT.tar.gz app/ +bsdtar --options xz:compression-level=9 -a -cf \ +$DSCIP_NAME-$(uname)-$(uname -r)_$(uname -m)-$CURRENT_COMMIT.tar.xz app/ # Send the artifacts to an FTP server. # ftp -in <