Skip to content

Commit b6d4f78

Browse files
committed
he read builtin in macOS's bash doesn't support decimal timeout values like 0.1. On macOS, the timeout needs to be an integer (whole number)
1 parent 421e8dd commit b6d4f78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shelldio.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ info() {
352352
echo -ne " "
353353

354354
# Check for user input
355-
read -r -n1 -s -t 0.1 input_play
355+
read -r -n1 -s -t 1 input_play
356356
case "$input_play" in
357357
[Qq]) return 1 ;; # Signal to quit
358358
[Ll]) return 0 ;; # Signal to return to menu
@@ -375,7 +375,7 @@ info() {
375375
[Pp]) previous_station ;; # Previous station
376376
$'\e')
377377
# Handle arrow keys (escape sequences)
378-
read -r -n2 -s -t 0.1 arrow
378+
read -r -n2 -s -t 1 arrow
379379
case "$arrow" in
380380
"[C") next_station ;; # Right arrow = Next
381381
"[D") previous_station ;; # Left arrow = Previous

0 commit comments

Comments
 (0)