From: Chris Koeritz Date: Wed, 15 Nov 2017 04:50:12 +0000 (-0500) Subject: very nice, nearly there... X-Git-Tag: 2.140.100^2~11^2~4 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=405a4600e7efc38ca04306f86dbda95ae592ce1d;p=feisty_meow.git very nice, nearly there... --- 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.