aboutsummaryrefslogtreecommitdiffstats
path: root/etc/rc.d/init.d/functions
diff options
context:
space:
mode:
authorhanzongcheng <hanzongcheng@huawei.com>2021-11-02 00:15:21 +0800
committerJan Macku <jamacku@redhat.com>2021-11-02 12:08:16 +0100
commitd615d9188297949a89b2ac64db4314c563955632 (patch)
tree8c4350694e0df41a3742114d882a6a6eac624551 /etc/rc.d/init.d/functions
parentf90b19b31b3583e8c2863523f71eefc992615e96 (diff)
downloadinitscripts-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>
Diffstat (limited to 'etc/rc.d/init.d/functions')
-rw-r--r--etc/rc.d/init.d/functions2
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"