Skip to content

Commit

Permalink
fix: inverted branch in checking cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
cfoust committed Nov 7, 2024
1 parent 2eae326 commit 3ed4aa8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/sour/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ func serveCommand(configs []string) error {
}

// Also check the current directory
if current, err := os.Getwd(); err != nil {
if current, err := os.Getwd(); err == nil {
source := filepath.Join(
current,
"assets/.index.source",
"assets",
".index.source",
)

if _, err := os.Stat(source); err == nil {
Expand Down

0 comments on commit 3ed4aa8

Please sign in to comment.