aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-12-14 01:30:42 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-12-14 01:30:42 +0200
commit48ca4f56a0d4b891ca0546aacdd8d3e54eb2e1b1 (patch)
tree487e968f6c3aec74534bdcfedd3ee62f2496e977
parentde38fcf7bfbb5b8ba70e54621cb69f0b3aeba65c (diff)
downloadarching-kaos-tools-48ca4f56a0d4b891ca0546aacdd8d3e54eb2e1b1.tar.gz
arching-kaos-tools-48ca4f56a0d4b891ca0546aacdd8d3e54eb2e1b1.tar.bz2
arching-kaos-tools-48ca4f56a0d4b891ca0546aacdd8d3e54eb2e1b1.zip
Tiny fix missing 'then' after 'if'
-rwxr-xr-xlib/_ak_fm5
1 files changed, 3 insertions, 2 deletions
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"