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