I have to read out a CSV file using bash. But my loop quits after 1 iteration.
Code:
function readCSVFile () {
input="bitbucket-repositories.csv";
OLDIFS=$IFS
IFS=","
while read repo tool folder;
do
cd websites || exit
cloneRepo $repo
checkRepo
cd ../ || exit 0
checkTool -> calls another script (../script.bash) -> no ssh
countCSVLines
done < $input
IFS=$OLDIFS
}