From e511a8b05530d58bdb4f852458746cd77a2b4b71 Mon Sep 17 00:00:00 2001 From: Ante Maretic Date: Fri, 9 Sep 2022 14:39:46 +0200 Subject: [PATCH] Prepend relative pathname character to file variable if not provided correctly --- migration.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration.sh b/migration.sh index bb09560..2bd3b10 100755 --- a/migration.sh +++ b/migration.sh @@ -44,7 +44,7 @@ echo "===> Jdbc drivers downloaded." echo "" echo "===> Start to export database into SQL script: " -java -cp $OUTPUT_DIR/h2-1.4.200.jar org.h2.tools.Script -url "jdbc:h2:$file" -user "$username" -password "$password" -script "./$OUTPUT_DIR/backup.sql" +java -cp $OUTPUT_DIR/h2-1.4.200.jar org.h2.tools.Script -url "jdbc:h2:${file:+./$file}" -user "$username" -password "$password" -script "./$OUTPUT_DIR/backup.sql" echo "===> Done export." echo ""