Bash Pass Array To Function