aboutsummaryrefslogtreecommitdiff
path: root/lib/_ak_fm
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-24 06:01:16 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-24 06:01:16 +0300
commit21c7f1852b0d2ca145d18a165d6d90c6127dc44a (patch)
treefc7f56d5bd7132b2f7c96f4cf8887b53420eb320 /lib/_ak_fm
parenta1583cc6041ae6239bf8e32ccadd11b0b79b4c79 (diff)
downloadarching-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-xlib/_ak_fm4
1 files changed, 2 insertions, 2 deletions
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