curl outputs a space even with -s option so stdout is now redirected to /dev/null.