Bash Script Curl Command Not Returning