Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Jul 20, 2023
1 parent a7eea72 commit 3c6fc23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/offline.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ var GoOffline = &cobra.Command{
}

// Run in embedded mode once to download the postgres binary
databaseDir := "/app/temp-database-dir"
os.Mkdir(databaseDir, 0755)
databaseDir := "temp-database-dir"
if err := os.Mkdir(databaseDir, 0755); err != nil {
logger.Fatalf("Failed to create database directory[%s]: %+v", err)
}
defer os.RemoveAll(databaseDir)

db.ConnectionString = "embedded://" + databaseDir
Expand Down

0 comments on commit 3c6fc23

Please sign in to comment.