-2

I'm trying to test my created script to learn more about scripting and encountered the error "No such file or directory" despite that my .sh script is on the same folder of my .sql file. By the way, I'm using gitbash to run my .sh script.

enter image description here

This is just my script:

SQL_FILE = ./test.sql

echo "test test test"
echo "SELECT * FROM testDb;" > "${SQL_File}"
echo SQL_FILE
Elijah Leis
  • 367
  • 7
  • 18

1 Answers1

0
SQL_FILE="./test.ql"
Biffen
  • 6,249
  • 6
  • 28
  • 36
baozilaji
  • 304
  • 1
  • 10