diff --git a/CHANGELOG.md b/CHANGELOG.md index a3583c9..9c67148 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp ### Fixed +* fix interactive mode detection + ### Security ## [23.07] - 2023-07-04 diff --git a/minifirewall b/minifirewall index 286d4ab..3d7c972 100755 --- a/minifirewall +++ b/minifirewall @@ -129,10 +129,8 @@ BOLD='' RESET='' # check if stdout is a terminal... -if [ -t 0 ]; then +if [ -t 1 ]; then INTERACTIVE=1 -elif [ -t 1 ]; then - INTERACTIVE=0 # see if it supports colors... ncolors=$(tput colors) @@ -149,6 +147,8 @@ elif [ -t 1 ]; then BOLD=$(tput bold) RESET='\e[m' fi +else + INTERACTIVE=0 fi readonly INTERACTIVE