mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
17 lines
278 B
Bash
Executable File
17 lines
278 B
Bash
Executable File
#!/bin/sh
|
|
cd "$(dirname "$0")"
|
|
if [ -z "$GPG_PASSWORD" ]; then
|
|
echo Env variable GPG_PASSWORD must be defined
|
|
exit 1
|
|
fi
|
|
gpg \
|
|
--quiet \
|
|
--batch \
|
|
--yes \
|
|
--decrypt \
|
|
--passphrase="$GPG_PASSWORD" \
|
|
--output secret.tar.gz \
|
|
secret
|
|
tar -xzf secret.tar.gz
|
|
rm secret.tar.gz
|