Check for tty in main

So that the value is set every time it is checked
This commit is contained in:
James Conroy
2022-02-09 19:41:51 -06:00
parent 163182c858
commit bfcfad2e7d

View File

@@ -215,6 +215,7 @@ print_line() {
}
main() {
is_tty
# if running from salt
if [ "$CALLER" == 'salt-call' ] || [ "$CALLER" == 'salt-minion' ]; then
printf "\n"