fix(bin): adjust dload.sh for file management

This commit is contained in:
dancingCycle 2023-08-28 13:43:27 +02:00
parent 9dd9f127b5
commit bcf523b0dc
1 changed files with 2 additions and 2 deletions

View File

@ -41,14 +41,14 @@ echo "csvFileLower: $csvFileLower"
csvFileLowerPath=${unzipDir}/$csvFileLower csvFileLowerPath=${unzipDir}/$csvFileLower
echo "csvFileLowerPath: $csvFileLowerPath" echo "csvFileLowerPath: $csvFileLowerPath"
sed '1s/\(.*\)/\L\1/' $csvFilePath > $csvFileLowerPath sed '1s/\(.*\)/\L\1/' $csvFilePath > $csvFileLowerPath
rm $csvFilePath #TODO rm $csvFilePath
# #
csvFileComma=${csvFileNoExt}-dot-lower-comma.csv csvFileComma=${csvFileNoExt}-dot-lower-comma.csv
echo "csvFileComma: $csvFileComma" echo "csvFileComma: $csvFileComma"
csvFileCommaPath=${unzipDir}/$csvFileComma csvFileCommaPath=${unzipDir}/$csvFileComma
echo "csvFileCommaPath: $csvFileCommaPath" echo "csvFileCommaPath: $csvFileCommaPath"
sed -E 's/(");(")/\1\,\2/g' $csvFileLowerPath > $csvFileCommaPath sed -E 's/(");(")/\1\,\2/g' $csvFileLowerPath > $csvFileCommaPath
rm $csvFileLowerPath #TODO rm $csvFileLowerPath
# #
ZHV_CSV_OUTPUT="$3" ZHV_CSV_OUTPUT="$3"
echo "ZHV_CSV_OUTPUT: $ZHV_CSV_OUTPUT" echo "ZHV_CSV_OUTPUT: $ZHV_CSV_OUTPUT"