mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
修复&符号转义
This commit is contained in:
parent
802b2d722e
commit
3c5c5b0bbc
|
@ -58,7 +58,7 @@ format_params() {
|
|||
if type timeout &>/dev/null; then
|
||||
timeoutCmd="timeout -k 10s $command_timeout_time "
|
||||
fi
|
||||
params=$(echo "$@" | sed 's/&/\\&/g')
|
||||
params=$(echo "$@" | sed -E 's/([^ ])&([^ ])/\1\\\&\2/g')
|
||||
}
|
||||
|
||||
show_log="false"
|
||||
|
|
Loading…
Reference in New Issue
Block a user