Bash Script Function With Variable