diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-27 03:49:27 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-27 03:49:27 +0200 |
commit | 28717aded7df4ac4842fa308e67c1c15e1de4ffa (patch) | |
tree | 64a93db7a952dabf5c2af3b7776bdcf0d050e181 /bin/ak-data-expand | |
parent | abdfe0a5c2a86f19aafe12ae70663ddcf83a6e39 (diff) | |
download | arching-kaos-tools-28717aded7df4ac4842fa308e67c1c15e1de4ffa.tar.gz arching-kaos-tools-28717aded7df4ac4842fa308e67c1c15e1de4ffa.tar.bz2 arching-kaos-tools-28717aded7df4ac4842fa308e67c1c15e1de4ffa.zip |
Introduced and applied _ak_gpg library
Diffstat (limited to 'bin/ak-data-expand')
-rwxr-xr-x | bin/ak-data-expand | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ak-data-expand b/bin/ak-data-expand index 0c79741..0a82e63 100755 --- a/bin/ak-data-expand +++ b/bin/ak-data-expand @@ -1,6 +1,7 @@ #!/bin/bash PROGRAM="$(basename $0)" source $AK_LIBDIR/_ak_logit +source $AK_LIBDIR/_ak_gpg if [ ! -d $AK_WORKDIR/ipfs ] then @@ -64,7 +65,7 @@ then logit "ERROR" "Could not get GPG key: $gpg" exit 1 fi - gpg2 --homedir $AK_GPGHOME --import $gpg > /dev/null 2>&1 + _ak_gpg_key_import_from_file $gpg > /dev/null 2>&1 if [ "$?" -ne 0 ] then logit "ERROR" "Could not import GPG key: $gpg" @@ -85,7 +86,7 @@ then exit 1 fi logit "INFO" "Data downloaded: $DATA" - gpg2 --homedir $AK_GPGHOME --verify $DATA.asc $DATA > /dev/null 2>&1 + _ak_gpg_verify_signature $DATA.asc $DATA > /dev/null 2>&1 if [ "$?" -ne 0 ] then logit "ERROR" "Error while verifying signature for $DATA" |