Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
b4cc8781
Commit
b4cc8781
authored
Nov 17, 2014
by
Côme Bernigaud
Committed by
Benoit Mortier
Nov 17, 2014
Browse files
Fixes
#3470
Fixed errors when <STDIN> is undefined
parent
936988c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
contrib/bin/fusiondirectory-setup
View file @
b4cc8781
...
...
@@ -97,9 +97,12 @@ sub ask_user_input {
do
{
$answer
=
<
STDIN
>
;
chomp
$answer
;
$answer
=~
s/^\s+|\s+$//g
;
if
(
$answer
=
<
STDIN
>
)
{
chomp
$answer
;
$answer
=~
s/^\s+|\s+$//g
;
}
else
{
$answer
=
"";
}
}
while
((
$answer
eq
"")
&&
(
not
defined
$default_answer
));
if
(
$answer
eq
"")
{
...
...
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