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
e6fc07f1
Commit
e6fc07f1
authored
Sep 24, 2004
by
Leigh B. Stoller
Browse files
Fix the getopt stuff. Really need to call getopts, not getopt! Took me
30 minutes to notice that silly little s!
parent
9f791a7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/ops-install.in
View file @
e6fc07f1
...
...
@@ -54,12 +54,13 @@ sub usage {
my
$packagedir
=
"";
my
$batchmode
=
0
;
my
%opts
;
getopt
("
p:b
",
%opts
);
if
(
$opt
{
p
})
{
$packagedir
=
$opt
{
p
};
if
(
!
getopts
("
p:b
",
\
%opts
))
{
usage
();
}
if
(
defined
(
$opts
{
p
}))
{
$packagedir
=
$opts
{
p
};
}
if
(
$opt
{
b
})
{
if
(
defined
(
$opt
s
{
b
})
)
{
$batchmode
=
1
;
}
...
...
@@ -153,6 +154,7 @@ if (! $batchmode) {
my
$response
=
<>
;
die
"
Installation aborted!
\n
"
unless
(
$response
=~
/^y/i
);
}
exit
(
0
);
if
(
$UID
!=
0
)
{
die
"
This script must be run as root.
\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