Skip to content

Commit

Permalink
pass through args directly
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed May 3, 2024
1 parent 816282f commit 4299c39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/zetaclientd-supervisor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func main() {
}

for {
cmd := exec.Command("zetaclientd", "start")
cmd := exec.Command("zetaclientd", os.Args[1:]...)

Check failure on line 106 in cmd/zetaclientd-supervisor/main.go

View workflow job for this annotation

GitHub Actions / lint

G204: Subprocess launched with a potential tainted input or cmd arguments (gosec)

Check failure on line 106 in cmd/zetaclientd-supervisor/main.go

View workflow job for this annotation

GitHub Actions / lint

G204: Subprocess launched with a potential tainted input or cmd arguments (gosec)
cmd.Stdout = serializedStdout
cmd.Stderr = os.Stderr
// must reset the passwordInputBuffer every iteration because reads are stateful (seek to end)
Expand Down
4 changes: 2 additions & 2 deletions contrib/localnet/scripts/start-zetaclientd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ then
set_sepolia_endpoint
fi

zetaclientd-supervisor < /root/password.file
zetaclientd-supervisor start < /root/password.file
else
num=$(echo $HOSTNAME | tr -dc '0-9')
node="zetacore$num"
Expand All @@ -63,7 +63,7 @@ else
set_sepolia_endpoint
fi

zetaclientd-supervisor < /root/password.file
zetaclientd-supervisor start < /root/password.file
fi

# check if the option is background
Expand Down

0 comments on commit 4299c39

Please sign in to comment.