mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 01:41:36 +00:00
19 lines
495 B
Bash
19 lines
495 B
Bash
#!/bin/sh
|
|
|
|
mydir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
echo "running from ${mydir}"
|
|
credsfile="${gampath}/creds.tar"
|
|
echo "target file is ${credsfile}"
|
|
gpgfile="${mydir}/creds.tar.gpg"
|
|
echo "source file is ${gpgfile}"
|
|
if [ -z ${PASSCODE+x} ]; then
|
|
echo "PASSCODE is unset";
|
|
else
|
|
echo "PASSCODE is set";
|
|
fi
|
|
|
|
gpg --quiet --batch --yes --decrypt --passphrase="${PASSCODE}" \
|
|
--output "${credsfile}" "${gpgfile}"
|
|
|
|
tar xf "${credsfile}" --directory "${gampath}"
|