From 21c7f1852b0d2ca145d18a165d6d90c6127dc44a Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 24 Jun 2024 06:01:16 +0300 Subject: refactoring --- lib/_ak_fm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/_ak_fm') diff --git a/lib/_ak_fm b/lib/_ak_fm index cf1a14b..deefb6d 100755 --- a/lib/_ak_fm +++ b/lib/_ak_fm @@ -1,7 +1,7 @@ #!/bin/bash _ak_fm_remove_line_from_file(){ - tempfile="$(mktemp)" + tempfile="$(_ak_make_temp_file)" if [ ! -f "$2" ] then _ak_log_error "$2 does not exist" @@ -23,7 +23,7 @@ _ak_fm_sort_uniq_file(){ _ak_log_info "No file to process" else _ak_log_info "Sorting $1..." - tempfile="$(mktemp)" + tempfile="$(_ak_make_temp_file)" cat "$1" | sort | uniq > $tempfile cat $tempfile > $1 rm $tempfile -- cgit v1.2.3