Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start_proc takes wrong arguments number #194

Open
Megver83 opened this issue Jul 12, 2022 · 0 comments
Open

start_proc takes wrong arguments number #194

Megver83 opened this issue Jul 12, 2022 · 0 comments

Comments

@Megver83
Copy link

nohup bash -c "{ $2 \"$4\" \"$5\" \"${fifo}\" | \"${SCRIPT}\" outproc \"$1\" \"${fifo}\"

This line takes a 5th argument, skipping $3, which makes a script using start_proc to skip its first argument. I just started using this bot and I was breaking my head because I tried to run a script, which took the chat id as an argument, like this:

start_proc "${CHAT[ID]}" "bin/pcr.sh" "${CHAT[ID]}"

But had to do this:

start_proc "${CHAT[ID]}" "bin/pcr.sh" "dummy-arg" "${CHAT[ID]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant