Apply shellcheck

This commit is contained in:
project-repo 2023-02-17 21:31:02 +01:00
commit 8fbcba1c38
11 changed files with 61 additions and 35 deletions

View file

@ -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