mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-20 04:24:18 +02:00
Apply shellcheck
This commit is contained in:
parent
358f759166
commit
8fbcba1c38
11 changed files with 61 additions and 35 deletions
|
|
@ -19,6 +19,7 @@ do
|
|||
curr_workspace="$(echo "${event}"|jq -r ".outputs.${curr_output}.curr_workspace")"
|
||||
# Print the process names of the view on the current workspace. jq retrieves
|
||||
# their PID and ps is then used to retrieve the process names.
|
||||
# shellcheck disable=2046
|
||||
(echo -n "message ";ps -o comm=Command -p $(echo "${event}"|jq -r ".outputs.${curr_output}.workspaces[$((curr_workspace-1))].views[].pid")|tail +2|sed ':a; N; $!ba; s/\n/||/g') >&3
|
||||
break
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue