bindplane-agent
bindplane-agent copied to clipboard
fix: install_unix.sh breaks with status code 2 in non-interactive environments
trafficstars
Proposed Change
The script "install_unix.sh" was not working in non-interactive shells, because there are tools used (stty and tput) for which a connected tty is mandatory. This is being fixed by a sh-compliant way of checking if the $- contains the i-flag.
Checklist
- [x] Changes are tested
- [x] CI has passed
I suggest closing this in favor of #1895
I'm going to close this since #1895 has been merged and should solve this problem with an optional flag. Thanks for taking the time to open this PR, it's very much appreciated!