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
8f6d9ce7
Commit
8f6d9ce7
authored
May 28, 2003
by
Leigh B. Stoller
Browse files
Oops, used backtick to run egrep, when I should have used system()
instead (so the exit status could be checked in the if condition!).
parent
a9ab2bdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
os/install-tarfile
View file @
8f6d9ce7
...
...
@@ -48,6 +48,9 @@ my $installdir = "/";
my
$jailmode
=
0
;
my
$jailfile
=
"";
# Protos
sub
GetTarFile
($$);
#
# Must be running as root to work.
#
...
...
@@ -101,7 +104,7 @@ if (! -d $installdir) {
# the file now. If the tar fails, we got big problems.
#
if
(
-
e
$IDENTFILE
)
{
if
(
!
`
egrep -q -s '^
${tarfile}
'
$IDENTFILE
`
)
{
if
(
!
system
("
egrep -q -s '^
${tarfile}
'
$IDENTFILE
")
)
{
print
STDOUT
"
Tarfile
$tarfile
has already been installed!
\n
";
exit
(
1
);
}
...
...
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