mirror of
https://github.com/qemus/qemu-docker.git
synced 2025-12-24 13:38:05 +08:00
fix: Local variable declaration for pid file (#976)
This commit is contained in:
@@ -584,11 +584,11 @@ configureNAT() {
|
||||
|
||||
closeBridge() {
|
||||
|
||||
pid="/tmp/passt.pid"
|
||||
local pid="/tmp/passt.pid"
|
||||
[ -s "$pid" ] && pKill "$(<"$pid")"
|
||||
rm -f "$pid"
|
||||
|
||||
local pid="/var/run/dnsmasq.pid"
|
||||
pid="/var/run/dnsmasq.pid"
|
||||
[ -s "$pid" ] && pKill "$(<"$pid")"
|
||||
rm -f "$pid"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user