From e29327a0d9eb338205c5d2439cff16df0fdfc44d Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Fri, 21 Jul 2023 15:13:08 -0400 Subject: [PATCH] Update decrypt.sh --- .github/actions/decrypt.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/actions/decrypt.sh b/.github/actions/decrypt.sh index 76051ea5..fee79d00 100644 --- a/.github/actions/decrypt.sh +++ b/.github/actions/decrypt.sh @@ -1,5 +1,5 @@ #!/bin/sh - +credspath="${HOME}/.gam" gpgfile="$1" echo "source file is ${gpgfile}" credsfile="$2" @@ -13,6 +13,7 @@ fi gpg --quiet --batch --yes --decrypt --passphrase="${PASSCODE}" \ --output "${credsfile}" "${gpgfile}" -tar xvvf "${credsfile}" --directory "${gampath}" +mkdir -p "${credspath}" +tar xvvf "${credsfile}" --directory "${credspath}" rm -rvf "${gpgfile}" rm -rvf "${credsfile}"