Skip to content

Commit b0833ab

Browse files
committed
--> Adds support for Ubuntu
1 parent fc67563 commit b0833ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/sqldump/SQLDump.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void run(String[] args) {
5757
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy_MM_dd");
5858
Calendar cal = Calendar.getInstance();
5959
String dateString = dateFormat.format(cal.getTime());
60-
outPath += dateString + "\\";
60+
outPath += dateString + File.separator;
6161

6262
// check and create paths
6363
if (checkAndCreatePaths(sqlPath, outPath) != true) {
@@ -86,7 +86,7 @@ public boolean accept(File dir, String name) {
8686
// execute query
8787
PingPong pp = log.info("working file " + (i+1) + "/" + numOfFiles + " (" + currentSQLFile + ")...");
8888
Query qry = new Query(con, log);
89-
qry.getDataFromSQLFile(sqlPath + "\\" + currentSQLFile, outPath + "\\" + fileNameWithOutExt + ".csv");
89+
qry.getDataFromSQLFile(listOfSQLFiles[i].getPath(), outPath + File.separator + fileNameWithOutExt + ".csv");
9090
log.finished(pp);
9191
} catch (Exception e) {
9292
log.error("error occured while executing file \"" + listOfSQLFiles[i].getName().toString() + "\": ");

0 commit comments

Comments
 (0)