aboutsummaryrefslogtreecommitdiff
path: root/lib/_ak_gpg
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-07-05 00:32:55 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-07-05 00:32:55 +0300
commit681358adcfc8d1471ca53c3af246bf80a885ef98 (patch)
tree1b339d01f5ed5bee99c5c1be4403a6d23b7c05c4 /lib/_ak_gpg
parentc0dbfc8dc7cf7af278de1d233d87ffbe481ba704 (diff)
downloadarching-kaos-tools-681358adcfc8d1471ca53c3af246bf80a885ef98.tar.gz
arching-kaos-tools-681358adcfc8d1471ca53c3af246bf80a885ef98.tar.bz2
arching-kaos-tools-681358adcfc8d1471ca53c3af246bf80a885ef98.zip
Refactoring
- Edited log messages and types - IPFS `cat` is now calling `get` which in turn searches for already gotten file, otherwise fetches it. - ak-data-expand is now a function of _ak_zblock lib (_ak_data_expand) - Removed ak-sm-hash-to-path as it lives in _ak_fs lib now - Removed _ak_title_description and _ak_help from ak in favor of _ak_usage - Tweaks around native FS over IPFS strategy Note that we are preparing the ground for migration to AKFS as well
Diffstat (limited to 'lib/_ak_gpg')
-rwxr-xr-xlib/_ak_gpg5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/_ak_gpg b/lib/_ak_gpg
index 80e461c..b0036ca 100755
--- a/lib/_ak_gpg
+++ b/lib/_ak_gpg
@@ -18,12 +18,12 @@ _ak_gpg_key_import_from_file(){
_ak_log_error "Empty argument given"
exit 1
fi
- if [ ! -f "$1" ]
+ if [ ! -f "$AK_IPFS_ARTIFACTS/$1" ]
then
_ak_log_error "File not found"
exit 1
fi
- _ak_gpg --import $1 > /dev/null 2>&1
+ _ak_gpg --import $AK_IPFS_ARTIFACTS/$1 > /dev/null 2>&1
}
_ak_gpg_key_self_get_fingerprint_from_config(){
@@ -106,6 +106,7 @@ _ak_gpg_verify_signature(){
then
_ak_gpg --verify $1 $2 > /dev/null 2>&1
else
+ _ak_log_error "Failed to verify detached signature $1 against $2"
exit 1
fi
}