Skip to content

Commit ea3e379

Browse files
committed
fix: used proper result to verify if signature is downloaded
1 parent 8d768ee commit ea3e379

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/kotlin/com/coder/toolbox/cli/CoderCLIManager.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ class CoderCLIManager(
132132
private val forceDownloadToData: Boolean = false,
133133
) {
134134
private val downloader = createDownloadService()
135+
135136
val remoteBinaryURL: URL = context.settingsStore.binSource(deploymentURL)
136137
val localBinaryPath: Path = context.settingsStore.binPath(deploymentURL, forceDownloadToData)
137138
val coderConfigPath: Path = context.settingsStore.dataDir(deploymentURL).resolve("config")
@@ -175,7 +176,7 @@ class CoderCLIManager(
175176

176177
// if we could not find any signature and the user wants to explicitly
177178
// confirm whether we run an unsigned cli
178-
if (cliDownloadResult.isNotDownloaded()) {
179+
if (singatureDownloadResult.isNotDownloaded()) {
179180
val cli = cliDownloadResult as Downloaded
180181
if (context.settingsStore.allowUnsignedBinaryWithoutPrompt) {
181182
context.logger.warn("Running unsigned CLI from ${cli.source}")

0 commit comments

Comments
 (0)