I have this code snippet. It gives me syntax error: unexpected end of file If I copy it in a .sh file and run in terminal it works.
before_script:
- sbt sbtVersion
- for file in ./pending/*.sql; do
file=$(basename "$file")
export str_opt="$(cat ./pending/"$file"|tr '\n' ' ')"
mv ./pending/"$file" ./done/
done
where am I going wrong?