Fixed #6, used proper array indexing technique

This commit is contained in:
G2 2023-03-07 10:29:30 -06:00
parent 741fe542f1
commit bd27870290

View file

@ -19,7 +19,7 @@ welcome () {
fi fi
if [ "$randgreeting" = "on" ]; then if [ "$randgreeting" = "on" ]; then
msg=${greetings[$greetingsNumber]} msg=${greetings[@]:$greetingsNumber:1}
fi fi
# Print the welcome message # Print the welcome message