From 681358adcfc8d1471ca53c3af246bf80a885ef98 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 5 Jul 2024 00:32:55 +0300 Subject: 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 --- lib/_ak_gpg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/_ak_gpg') 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 } -- cgit v1.2.3