Im using docker for the first time to extract some file .dbc to .csv, following this repository: https://github.com/greatjapa/dbc2csv.
When I execute docker run -it -v "/c/Users/Vinicius/dbc2csv/source:/usr/src/app/data dbc2csv make"
i get the following error:
./dbc2dbf.sh: 1: Syntax error: word unexpected (expecting “do”) make: *** [Makefile:2: convert] Error 2>
Thats the shell script, although it seems correct, i keep getting the same error.
#!/bin/sh
for file in source/*.dbc; do
echo "Processing file: $file"
./blast-dbf/blast-dbf "$file" "${file%%.*}.dbf"
echo "$file converted to dbf"
done
I already tried to change the directory format in the cmd, saw a lot of forums about docker and shell, but nothing prove to be effective.
Vinicius is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.