mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-07 17:07:58 +08:00
Shellcheck
This commit is contained in:
parent
f8d923ce25
commit
c8b80bf49c
@ -5,10 +5,10 @@ trap exit SIGINT SIGTERM
|
||||
# Close any previous instances
|
||||
script_name=${BASH_SOURCE[0]}
|
||||
|
||||
for pid in $(pidof -x $script_name); do
|
||||
if [ $pid != $$ ]; then
|
||||
kill -15 $pid 2> /dev/null
|
||||
wait $pid 2> /dev/null
|
||||
for pid in $(pidof -x "$script_name"); do
|
||||
if [ "$pid" != $$ ]; then
|
||||
kill -15 "$pid" 2> /dev/null
|
||||
wait "$pid" 2> /dev/null
|
||||
fi
|
||||
done
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user