cleaned up a temp file for version control
authorChris Koeritz <fred@gruntose.com>
Sun, 12 Nov 2017 01:48:55 +0000 (01:48 +0000)
committerChris Koeritz <fred@gruntose.com>
Sun, 12 Nov 2017 01:48:55 +0000 (01:48 +0000)
scripts/rev_control/version_control.sh

index 491dd17c1cc9ed5439eea6461f194ba381b13cd9..1d8b56083717c4a0b120cdcbb9a848a2f4ec0039 100644 (file)
@@ -444,8 +444,8 @@ function generate_rev_ctrl_filelist()
 
   local sortfile=$(mktemp /tmp/zz_checkin_sort.XXXXXX)
   sort <"$tempfile" >"$sortfile"
-  \rm "$tempfile"
   echo "$sortfile"
+  \rm "$tempfile" "$sortfile"
 }
 
 # iterates across a list of directories contained in a file (first parameter).