From 405a4600e7efc38ca04306f86dbda95ae592ce1d Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 14 Nov 2017 23:50:12 -0500 Subject: [PATCH] very nice, nearly there... --- scripts/core/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index dee26d6b..5346e8a2 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -868,7 +868,7 @@ return 0 #var filename seeker numlines # make a backup first, oy. - \cp -f "$filename" "$filename.bkup-${RANDOM}" + \cp -f "$filename" "/tmp/$(basename ${filename}).bkup-${RANDOM}" test_or_die "backing up file: $filename" # make a temp file to write to before we move file into place in bind. -- 2.34.1