From a070e24f158a8d357ebe603b1b9ac7922c33f31a Mon Sep 17 00:00:00 2001 From: Mike Hibler <mike@flux.utah.edu> Date: Tue, 19 Dec 2006 22:14:32 +0000 Subject: [PATCH] Remove out tmp file before fetching the configs, otherwise the fetch will fail. --- utils/backupswitches.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/backupswitches.in b/utils/backupswitches.in index 5651e5727c..19ca1736c7 100644 --- a/utils/backupswitches.in +++ b/utils/backupswitches.in @@ -1,7 +1,7 @@ #!/usr/bin/perl # # EMULAB-COPYRIGHT -# Copyright (c) 2005 University of Utah and the Flux Group. +# Copyright (c) 2005, 2006 University of Utah and the Flux Group. # All rights reserved. # @@ -41,6 +41,7 @@ my $datestr = "$year-$mon-$mday"; # # Back up each switch in turn # +unlink $TMPFILE; foreach my $switch (@ARGV) { system "$GRAB $switch $TMPFILE" and die "Unable to grab config for $switch\n"; -- GitLab