diff options
author | hanzongcheng <hanzongcheng@huawei.com> | 2021-11-02 00:15:21 +0800 |
---|---|---|
committer | Jan Macku <jamacku@redhat.com> | 2021-11-02 12:08:16 +0100 |
commit | d615d9188297949a89b2ac64db4314c563955632 (patch) | |
tree | 8c4350694e0df41a3742114d882a6a6eac624551 | |
parent | f90b19b31b3583e8c2863523f71eefc992615e96 (diff) | |
download | initscripts-d615d9188297949a89b2ac64db4314c563955632.tar initscripts-d615d9188297949a89b2ac64db4314c563955632.tar.gz initscripts-d615d9188297949a89b2ac64db4314c563955632.tar.bz2 initscripts-d615d9188297949a89b2ac64db4314c563955632.tar.xz initscripts-d615d9188297949a89b2ac64db4314c563955632.zip |
rc.d/functions: do not use "+=" to concatenate string
Some shell(like busybox's) do not support "+=" for string concatenation.
Signed-off-by: hanzongcheng <hanzongcheng@huawei.com>
-rw-r--r-- | etc/rc.d/init.d/functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/init.d/functions b/etc/rc.d/init.d/functions index e5576196..0d973b3f 100644 --- a/etc/rc.d/init.d/functions +++ b/etc/rc.d/init.d/functions @@ -123,7 +123,7 @@ __kill_pids_term_kill_checkpids() { stime=${stat[21]} [ -n "$stime" ] && [ "$base_stime" -lt "$stime" ] && continue - remaining+="$pid " + remaining="$remaining$pid " done echo "$remaining" |