Ich muss eine CSV-Datei mit bash auslesen. Aber meine Schleife wird nach 1 Iteration beendet.While-Schleife stoppt nach 1 Iteration [BASH]
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
}
try Ihre Ausfahrt durch 'Echo value' zu ersetzen. Vielleicht bist du aus irgendeinem Grund aufregend. – Aif
Das Ganze läuft, also ist das nicht das Problem, denke ich. –