code snippet is below i'm simply trying to curl url details but loops is acting weirdly it's not ending the loop properly if more than 2 urls has been provided to text file & if one url is provided than not able to read that with out this line || [ -n url ]
.
while IFS= read -r url || [ -n url ] ; do
sh file.sh $url
done < "file.txt"