From 4217dc0560bf40b4fa7ae6a6f964bd56b418712e Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 14 Jun 2024 22:36:12 +0300 Subject: Refactoring --- lib/_ak_gpg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/_ak_gpg') diff --git a/lib/_ak_gpg b/lib/_ak_gpg index b74d411..81229e1 100755 --- a/lib/_ak_gpg +++ b/lib/_ak_gpg @@ -9,17 +9,17 @@ _ak_gpg(){ _ak_gpg_key_import_from_file(){ if [ -z $1 ] then - logit "[ERROR]" "No argument given" + _ak_log_error "No argument given" exit 1 fi if [ ! -n "$1" ] then - logit "[ERROR]" "Empty argument given" + _ak_log_error "Empty argument given" exit 1 fi if [ ! -f "$1" ] then - logit "[ERROR]" "File not found" + _ak_log_error "File not found" exit 1 fi _ak_gpg --import $1 > /dev/null 2>&1 -- cgit v1.2.3