aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xScripts/.local/scripts/qscope3
1 files changed, 1 insertions, 2 deletions
diff --git a/Scripts/.local/scripts/qscope b/Scripts/.local/scripts/qscope
index 9849cf5..0ae22cb 100755
--- a/Scripts/.local/scripts/qscope
+++ b/Scripts/.local/scripts/qscope
@@ -1,4 +1,3 @@
#!/usr/bin/env sh
-pid=$(pgrep ".*" -l | dmenu -p "Choose process: " | sed "s/\\([0-9]*\\).*/\1/g")
-kill -9 $pid
+pgrep ".*" -l | dmenu -p "Choose process: " | sed "s/\\([0-9]*\\).*/\1/g" | xargs kill -9 $1