Skip to content

Commit 3894a81

Browse files
author
Quentin Perez
committed
Add SCW_NOCHECKVERSION
1 parent 896f626 commit 3894a81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/cli/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ func initLogging(debug bool, verbose bool, streams *commands.Streams) {
166166
}
167167

168168
func checkVersion() {
169+
if os.Getenv("SCW_NOCHECKVERSION") != "1" {
170+
return
171+
}
169172
homeDir, err := config.GetHomeDir()
170173
if err != nil {
171174
return

0 commit comments

Comments
 (0)