Use bash instead of sh. Install curl.