Skip to content

Commit 42ec681

Browse files
committed
fixed issue when executed from cron, couldn't find games.txt
1 parent fdc0999 commit 42ec681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shuffle_selection.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ selection_array=()
66

77
while IFS= read -r game; do
88
selection_array+=("$game")
9-
done < "games.txt"
9+
done < "/home/pi/games.txt"
1010

1111
shuffled_array=($(shuf -e "${selection_array[@]}"))
1212
menu=("${shuffled_array[@]:0:32}")

0 commit comments

Comments
 (0)