From a9773bcbc0246b169902a7bd5bf5b10bc8f06872 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Wed, 25 Aug 2021 10:48:03 -0400 Subject: [PATCH] fix package-deb script --- scripts/package-deb.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/package-deb.sh b/scripts/package-deb.sh index e9e8487..60f407c 100755 --- a/scripts/package-deb.sh +++ b/scripts/package-deb.sh @@ -1,11 +1,13 @@ #!/bin/bash -BIN_PATH="target/steamguard-cli" -if [[ ! -f "${BIN_PATH}" ]]; then +set -e + +BIN_PATH="target/release/steamguard-cli" +if [[ ! -f "$BIN_PATH" ]]; then echo "ERROR: Could not find release binaries, building them..." cargo build --release fi -VERSION=$("$BIN_PATH" --version | cut -d " " -f 2)"-0" +VERSION="$("$BIN_PATH" --version | cut -d " " -f 2)-0" TEMP_PKG_PATH="/tmp/steamguard-cli_$VERSION" echo "Building Debian package for v$VERSION..."