Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
a070e24f
Commit
a070e24f
authored
Dec 19, 2006
by
Mike Hibler
Browse files
Remove out tmp file before fetching the configs, otherwise the fetch will fail.
parent
08094755
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/backupswitches.in
View file @
a070e24f
#!/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
";
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment