Skip to content

Commit 131b01d

Browse files
committed
compile guard out update check command in debug
1 parent 33bf66f commit 131b01d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Cli/Commands/CheckForUpdate/CheckForUpdateCommand.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ public partial class CheckForUpdateCommand : Command
1717

1818
protected override async ValueTask<ExitCode> InvokeAsync()
1919
{
20+
#if DEBUG
21+
Logger.Info(LogSource.App, "version '16' up to date -kzzkt-");
22+
return ExitCode.Normal;
23+
#endif
24+
2025
var latest = await GitHubApi.GetLatestGliReleaseAsync(Http);
2126
if (latest is null)
2227
return ExitCode.ObjectNotFound;

0 commit comments

Comments
 (0)