Skip to content

Commit ad66242

Browse files
committed
Dont exit if config file is not found
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent 873b279 commit ad66242

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = 0.2.6
1+
VERSION = 0.2.7
22

33
publish:
44
git tag $(VERSION)

cmd/root.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,5 @@ func initConfig() {
113113
viper.SetConfigName(".tunnel")
114114
}
115115
viper.AutomaticEnv() // Read in environment variables that match
116-
if err := viper.ReadInConfig(); err != nil {
117-
log.Fatalf("Failed to read config: %v", err)
118-
}
116+
viper.ReadInConfig()
119117
}

cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var (
1212
Short: "Print the version of Tunnel",
1313
// Long: ``,
1414
Run: func(cmd *cobra.Command, args []string) {
15-
fmt.Println("0.2.6")
15+
fmt.Println("0.2.7")
1616
},
1717
}
1818
)

0 commit comments

Comments
 (0)