aboutsummaryrefslogtreecommitdiff
path: root/lib/_ak_fm
diff options
context:
space:
mode:
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