mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-22 18:21:35 +03:00
35dd51db68
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio>
13 lines
167 B
Bash
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)
|