OS_RUN Does doesn't run commands with more than one word BASH
kofteistkofte opened this issue ยท 2 comments
OS_RUN works perfectly when I need to use something like "/path/to/script.sh" or "firefox" etc, they work perfectly. But whenever I try to run something like "/path/to/script.sh argument" or "mpc toggle" etc, it doesn't.
- OS: Linux
- TwitchSpawn Version: 1.2.5
- Forge Version: 28.0.100
example rule:
OS_RUN LOCAL
BASH %mpc toggle%
DISPLAYING %["Here comes an OS magic!"]%
ON Donation
WITH amount IN RANGE [0,999]
logs
[09Sep2019 02:59:02.861] [EventThread/INFO] [net.programmer.igoodie.twitchspawn.TwitchSpawn/]: Received Streamlabs packet (donation, streamlabs) -> {"amount":98,"isTest":true,"name":"Kofteist_Kofte","currency":"USD","from":"John","to":{"name":"Kofteist_Kofte"},"_id":"3aff2a08c12cc6b029d9e030495c58a2","message":"This is a test donation for $98.00.","priority":10,"formatted_amount":"$98.00","from_user_id":1}
[09Sep2019 02:59:02.861] [EventThread/INFO] [net.programmer.igoodie.twitchspawn.TwitchSpawn/]: Handling (for kofteistkofte) arguments {eventType=donation, eventAccount=streamlabs, eventName=Donation, streamerNickname=kofteistkofte, actorNickname=Kofteist_Kofte, message=This is a test donation for $98.00., donationAmount=98.0, donationCurrency=USD}
[09Sep2019 02:59:02.861] [EventThread/INFO] [net.programmer.igoodie.twitchspawn.TwitchSpawn/]: No associated ruleset for kofteistkofte found. Handling with default rules
[09Sep2019 02:59:02.861] [EventThread/INFO] [net.programmer.igoodie.twitchspawn.TwitchSpawn/]: Queued handler for Donation event.
[09Sep2019 02:59:02.862] [Timer-64/INFO] [net.programmer.igoodie.twitchspawn.TwitchSpawn/]: Failed to run shell script -> mpc toggle
[09Sep2019 02:59:02.862] [Timer-64/INFO] [net.programmer.igoodie.twitchspawn.TwitchSpawn/]: OS_RUN failed to run. (Cannot run program "mpc toggle": error=2, No such file or directory)
[09Sep2019 02:59:02.862] [Timer-64/INFO] [net.programmer.igoodie.twitchspawn.TwitchSpawn/]: OsRunAction action performed for kofteistkofte
Must be fixed with 7a01cf3. (At least for CMD
and POWERSHELL
shells)
Waiting for your BASH
tests