mirror of
https://github.com/G2-Games/welcome.sh.git
synced 2025-04-19 05:22:53 -05:00
Fixed #6, used proper array indexing technique
This commit is contained in:
parent
741fe542f1
commit
bd27870290
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue