Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Commit

Permalink
BUG: Don't crash on initial startup with missing ~/.mole
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Dec 15, 2013
1 parent f797299 commit f617f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/mole/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func ensureHome() {
} else if err != nil {
fatalErr(err)
}
if fi.Mode()&0077 != 0 {
if err == nil && fi.Mode()&0077 != 0 {
err := os.Chmod(homeDir, 0700)
fatalErr(err)
okln("Corrected permissions on", homeDir)
Expand Down

0 comments on commit f617f37

Please sign in to comment.