mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix build fail
This commit is contained in:
parent
68c48e27f5
commit
863f91ddb4
5 changed files with 10 additions and 0 deletions
|
@ -350,14 +350,18 @@ function parse_user_option_to_value_and_option() {
|
|||
esac
|
||||
}
|
||||
|
||||
# For variable values, might be three values: YES, RESERVED, NO(by default).
|
||||
function value2switch() {
|
||||
if [[ $1 == YES ]]; then
|
||||
echo on;
|
||||
else if [[ $1 == RESERVED ]]; then
|
||||
echo reserved;
|
||||
else
|
||||
echo off;
|
||||
fi
|
||||
}
|
||||
|
||||
# For user options, only off or on(by default).
|
||||
function switch2value() {
|
||||
if [[ $1 == off ]]; then
|
||||
echo NO;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue