fix: Local variable declaration for pid file (#976)

This commit is contained in:
Kroese
2025-11-06 03:37:42 +01:00
committed by GitHub
parent 3d8685ed7f
commit 06b84849b3

View File

@@ -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"