Fix FS_DIEONWM not finding a binary that doesn't exist
This commit is contained in:
parent
a0e1243035
commit
b0b4b673eb
14
firestarter
14
firestarter
@ -460,20 +460,20 @@ step_postexecute() {
|
||||
}
|
||||
step_wait() {
|
||||
[ -n "$_dryrun" ] && exit 0
|
||||
log "Send any termination signal to firestarter to log out"
|
||||
trap step_logout EXIT
|
||||
if [ -n "$FS_DIEONWM" ] && gettarget "$_configdir/wm" && has readlink; then
|
||||
target="$_return"
|
||||
if [ -n "$FS_DIEONWM" ] && gettarget "$_configdir/wm" && has readlink && has "$_return"; then
|
||||
target="$(command -v "$_return")"
|
||||
for job in $(jobs -p); do
|
||||
if [ "$target" = "$(readlink /proc/$job/exe)" ]; then
|
||||
log "Waiting for WM to exit"
|
||||
log "Waiting for WM to exit: \"$_return\""
|
||||
wait "$job"
|
||||
exit 0
|
||||
fi
|
||||
done
|
||||
else
|
||||
log "Waiting for programs to exit"
|
||||
wait
|
||||
log "Could not find WM: \"$target\""
|
||||
fi
|
||||
log "Waiting for programs to exit"
|
||||
wait
|
||||
exit 0
|
||||
}
|
||||
step_logout() {
|
||||
|
Loading…
Reference in New Issue
Block a user