From 30421c23752a6ba2956cd541fa901bfc7cec7751 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Fri, 8 Apr 2016 12:01:54 -0700 Subject: [PATCH] ad-hoc fix for spaces in PIDs --- sh/unscreen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }