Unverified Commit 06b84849 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

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

parent 3d8685ed
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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"