1
1
mirror of https://github.com/tauri-apps/tauri.git synced 2024-12-25 19:54:07 +03:00
tauri/tooling/cli/scripts/kill-children.sh
Brian Li 35dd51db68
fix(cli): add shebang for kill-children.sh, closes ()
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)