Bash script with curls