diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-12-14 01:30:42 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-12-14 01:30:42 +0200 |
commit | 48ca4f56a0d4b891ca0546aacdd8d3e54eb2e1b1 (patch) | |
tree | 487e968f6c3aec74534bdcfedd3ee62f2496e977 /lib/_ak_fm | |
parent | de38fcf7bfbb5b8ba70e54621cb69f0b3aeba65c (diff) | |
download | arching-kaos-tools-48ca4f56a0d4b891ca0546aacdd8d3e54eb2e1b1.tar.gz arching-kaos-tools-48ca4f56a0d4b891ca0546aacdd8d3e54eb2e1b1.tar.bz2 arching-kaos-tools-48ca4f56a0d4b891ca0546aacdd8d3e54eb2e1b1.zip |
Tiny fix missing 'then' after 'if'
Diffstat (limited to 'lib/_ak_fm')
-rwxr-xr-x | lib/_ak_fm | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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" |