From d1793c2e820b4d9ed218202ceba8c9d49da3e564 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Tue, 2 Apr 2024 17:07:23 +0200 Subject: [PATCH] Fix release scripts --- scripts/unpack-releases.sh | 2 +- scripts/zip-release.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/unpack-releases.sh b/scripts/unpack-releases.sh index bbb6bb4..703afca 100755 --- a/scripts/unpack-releases.sh +++ b/scripts/unpack-releases.sh @@ -50,4 +50,4 @@ echo "Releases dir:" ls -lhrt # Go back to cwd -cd "{{CWD}}" +cd "$CWD" diff --git a/scripts/zip-release.sh b/scripts/zip-release.sh index 8c90390..e43f63a 100755 --- a/scripts/zip-release.sh +++ b/scripts/zip-release.sh @@ -43,7 +43,7 @@ cp "$TARGET_DIR/$BIN_NAME$BIN_EXT" staging/ cd staging # Zip the staging dir up -if [ "{{os_family()}}" = "windows" ]; then +if [ "$OS" = "windows" ]; then 7z a ../release.zip * else chmod +x "$BIN_NAME" @@ -51,5 +51,5 @@ else fi # Go back to cwd and clean up staging dir -cd "{{CWD}}" +cd "$CWD" rm -rf staging