mirror of
https://github.com/ONLYOFFICE/build_tools.git
synced 2026-04-07 14:06:31 +08:00
25 lines
356 B
Bash
Executable File
25 lines
356 B
Bash
Executable File
#!/bin/bash
|
|
|
|
[ -e config ] && rm config
|
|
|
|
key=""
|
|
is_closed=true
|
|
|
|
while [ "$#" -gt "0" ]
|
|
do
|
|
if [ "${1:0:2}" = "--" ]
|
|
then
|
|
if [ "$is_closed" = false ]
|
|
then
|
|
echo "$key=\"1\"" >> config
|
|
fi
|
|
key=${1:2}
|
|
is_closed=false
|
|
elif [ "$is_closed" = false ]
|
|
then
|
|
echo "$key=\"$1\"" >> config
|
|
is_closed=true
|
|
fi
|
|
shift
|
|
done
|