very nice, nearly there...
authorChris Koeritz <fred@gruntose.com>
Wed, 15 Nov 2017 04:50:12 +0000 (23:50 -0500)
committerChris Koeritz <fred@gruntose.com>
Wed, 15 Nov 2017 04:50:12 +0000 (23:50 -0500)
scripts/core/functions.sh

index dee26d6b4fae1a78dcb624508f631b1653960041..5346e8a2684aa8760036a5385d413c134c04aa9a 100644 (file)
@@ -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.