Skip to content

Commit 35dd51d

Browse files
fix(cli): add shebang for kill-children.sh, closes #4262 (#4416)
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio>
1 parent 31c15cd commit 35dd51d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.changes/fix-cli-kill-children.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"cli.rs": patch
3+
"cli.js": patch
4+
---
5+
6+
Fix shebang for `kill-children.sh`.

tooling/cli/scripts/kill-children.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
function getcpid() {
2-
cpids=`pgrep -P $1|xargs`
1+
#!/usr/bin/env sh
2+
3+
getcpid() {
4+
cpids=$(pgrep -P $1|xargs)
35
for cpid in $cpids;
46
do
57
echo "$cpid"

0 commit comments

Comments
 (0)