Files
GoogleDriveManagement/.github/actions/decrypt.sh
2020-12-04 08:59:51 -05:00

10 lines
287 B
Bash

#!/bin/sh
mydir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
credsfile="${gampath}/creds.tar"
gpg --quiet --batch --yes --decrypt --passphrase="${PASSPHRASE}" \
--output "${credsfile}" "${mydir}/creds.tar.gpg"
tar xf "${credsfile}" --directory "${gampath}"