mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-18 13:11:37 +00:00
18 lines
375 B
Bash
18 lines
375 B
Bash
#!/bin/sh
|
|
|
|
gpgfile="$1"
|
|
echo "source file is ${gpgfile}"
|
|
credsfile="$2"
|
|
echo "target file is ${credsfile}"
|
|
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 xvvf "${credsfile}" --directory "${gampath}"
|
|
ls -l "${gampath}"
|