mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-11-11 16:49:30 +01:00
Shellcheck
This commit is contained in:
1 parent
f8d923ce25
commit
c8b80bf49c
1 file changed
+4
-4
+4
-4
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user