1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh . ./config ./unsplit-passphrase mkdir -p "$GPGHOMEDIR" chmod 700 "$GPGHOMEDIR" gpg --decrypt --passphrase-file "$passphrase" "$seckey_e" > "$seckey" rm -f "$passphrase" gpg --homedir "$GPGHOMEDIR" --import "$seckey" rm -f "$seckey"