Bash Script Set Variable In If Statement