From 8667152bc05967c2a9b19a80d809c81caec0a4df Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 19 Jul 2024 17:54:46 +0300 Subject: Expanded ak-gpg handler --- init.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'init.sh') diff --git a/init.sh b/init.sh index 36c2d4f..b96d674 100755 --- a/init.sh +++ b/init.sh @@ -12,6 +12,7 @@ ak_gpg_check_or_create(){ then gpg2 --homedir $AK_GPGHOME --batch --passphrase '' --quick-gen-key kaos@kaos.kaos rsa3072 sign 0 AK_FINGERPRINT="$(gpg2 --homedir $AK_GPGHOME --list-keys | grep kaos@kaos.kaos -B 1 | head -n 1 | awk '{print $1}')" + printf '%s' "$AK_FINGERPRINT" > $AK_WORKDIR/current_key gpg2 --homedir $AK_GPGHOME --batch --passphrase '' --quick-add-key $AK_FINGERPRINT rsa3072 encrypt 0 fi } -- cgit v1.2.3