Closed jSadoski closed 4 years ago
Using parameters like ./darkmode.sh 0800 1930 produces this error:
./darkmode.sh 0800 1930
Error: Invalid arguments. Usage: ./darkmode.sh HHMM HHMM Exiting.
When testing each parameter evaluation individually (from line 281), this evaluation:
line 281
if (( $1 >= 0 && $1 <= 2400 )) && (( $2 >= 0 && $2 <= 2400 )); then
produces the error: ((: 0800: value too great for base (error token is "0800")
((: 0800: value too great for base (error token is "0800")
8 is being processed as an octal, not base 10.
8
Using parameters like
./darkmode.sh 0800 1930
produces this error:When testing each parameter evaluation individually (from
line 281
), this evaluation:produces the error:
((: 0800: value too great for base (error token is "0800")
8
is being processed as an octal, not base 10.