tauri/tooling/cli/scripts/kill-children.sh
Brian Li 35dd51db68
fix(cli): add shebang for kill-children.sh, closes #4262 (#4416)
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio>
2022-06-21 13:16:16 -03:00

13 lines
167 B
Bash

#!/usr/bin/env sh
getcpid() {
cpids=$(pgrep -P $1|xargs)
for cpid in $cpids;
do
echo "$cpid"
getcpid $cpid
done
}
kill $(getcpid $1)