diff --git a/configure b/configure index 125af49a..3a8fcdff 100755 --- a/configure +++ b/configure @@ -134,7 +134,7 @@ FAILED="${YELLOW}[FAILED]${NO_COLOR}" SECTION="${LIGHT_BLUE}[SECTION]${NO_COLOR}" function die { - printf "${ERROR} $1 \n" + printf "${RED}${ERROR} $1${NO_COLOR}\n" exit $2 } @@ -451,7 +451,7 @@ for opt do elif [[ ${optarg} == "915" ]]; then CPPFLAGS="-DMY_RFM69_FREQUENCY=RFM69_915MHZ $CPPFLAGS" else - echo "[WARNING] Illegal value for --my-rfm69-frequency=${optarg}, ignored" + die "Illegal value for --my-rfm69-frequency=${optarg}" 8 fi ;; --my-is-rfm69hw*) @@ -479,7 +479,7 @@ for opt do elif [[ ${optarg} == "915" ]]; then CPPFLAGS="-DMY_RFM95_FREQUENCY=RFM95_915MHZ $CPPFLAGS" else - echo "[WARNING] Illegal value for --my-rfm95-frequency=${optarg}, ignored" + die "Illegal value for --my-rfm95-frequency=${optarg}" 9 fi ;; --my-rfm95-irq-pin=*) @@ -538,7 +538,7 @@ for opt do security_password=${optarg} ;; *) - echo "[WARNING] Unknown option detected:$opt, ignored" + die "Unknown option detected: $opt" 10 ;; esac done @@ -638,7 +638,7 @@ elif [[ ${transport_type} == "rfm95" ]]; then elif [[ ${transport_type} == "rs485" ]]; then CPPFLAGS="-DMY_RS485 $CPPFLAGS" else - die "Invalid transport type." 3 + die "Invalid transport type ${transport_type}." 3 fi printf " ${OK} Transport: ${transport_type}.\n"