diff --git a/sh/unscreen b/sh/unscreen index cf63479..3c84858 100755 --- a/sh/unscreen +++ b/sh/unscreen @@ -4,7 +4,7 @@ unscreen() { local pids="$(screen -ls | fgrep "$1" | cut -d. -f1)" for pid in $=pids; do local ppid="$(ps h --ppid "$pid" -o pid)" - kill "$ppid" || return 1 + kill $=ppid || return 1 done return 0 }