From 48ca4f56a0d4b891ca0546aacdd8d3e54eb2e1b1 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 14 Dec 2024 01:30:42 +0200 Subject: Tiny fix missing 'then' after 'if' --- lib/_ak_fm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/_ak_fm') diff --git a/lib/_ak_fm b/lib/_ak_fm index c170f27..159f60c 100755 --- a/lib/_ak_fm +++ b/lib/_ak_fm @@ -1,6 +1,6 @@ #!/usr/bin/env bash -_ak_fm_remove_line_from_file(){ +function _ak_fm_remove_line_from_file(){ tempfile="$(_ak_make_temp_file)" if [ ! -f "$2" ] then @@ -9,6 +9,7 @@ _ak_fm_remove_line_from_file(){ fi grep "$1" "$2" > /dev/null 2>&1 if [ $? -ne 0 ] + then _ak_log_error "Could not find line: $1 in $2" exit 1 fi @@ -17,7 +18,7 @@ _ak_fm_remove_line_from_file(){ rm $tempfile } -_ak_fm_sort_uniq_file(){ +function _ak_fm_sort_uniq_file(){ if [ ! -f "$1" ] then _ak_log_info "No file to process" -- cgit v1.2.3