diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-06-24 06:01:16 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-06-24 06:01:16 +0300 |
commit | 21c7f1852b0d2ca145d18a165d6d90c6127dc44a (patch) | |
tree | fc7f56d5bd7132b2f7c96f4cf8887b53420eb320 /lib/_ak_fm | |
parent | a1583cc6041ae6239bf8e32ccadd11b0b79b4c79 (diff) | |
download | arching-kaos-tools-21c7f1852b0d2ca145d18a165d6d90c6127dc44a.tar.gz arching-kaos-tools-21c7f1852b0d2ca145d18a165d6d90c6127dc44a.tar.bz2 arching-kaos-tools-21c7f1852b0d2ca145d18a165d6d90c6127dc44a.zip |
refactoring
Diffstat (limited to 'lib/_ak_fm')
-rwxr-xr-x | lib/_ak_fm | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |