Fix firestarter killing itself because it exists
This commit is contained in:
parent
b8ceb738e4
commit
5bb9bda2d3
@ -274,8 +274,12 @@ https://gitlab.com/rehashedsalt/firestarter
|
|||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
step_check() {
|
step_check() {
|
||||||
if pgrep firestarter > /dev/null 2>&1 && [ -z "$dryrun" ]; then
|
if [ -z "$dryrun" ]; then
|
||||||
err "Firestarter is already running" 61
|
for pid in $(pgrep firestarter); do
|
||||||
|
if [ "$pid" != "$BASHPID" ]; then
|
||||||
|
err "Firestarter is already running" 61
|
||||||
|
fi
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user