mirror of
https://github.com/notwa/rc
synced 2024-11-14 08:39:02 -08:00
ad-hoc fix for spaces in PIDs
This commit is contained in:
parent
6e22c77978
commit
30421c2375
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ unscreen() {
|
||||||
local pids="$(screen -ls | fgrep "$1" | cut -d. -f1)"
|
local pids="$(screen -ls | fgrep "$1" | cut -d. -f1)"
|
||||||
for pid in $=pids; do
|
for pid in $=pids; do
|
||||||
local ppid="$(ps h --ppid "$pid" -o pid)"
|
local ppid="$(ps h --ppid "$pid" -o pid)"
|
||||||
kill "$ppid" || return 1
|
kill $=ppid || return 1
|
||||||
done
|
done
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue