Running Curl From Bash Script If Statement