Skip to content

Commit

Permalink
fix: corrupted bootstrap check, again
Browse files Browse the repository at this point in the history
  • Loading branch information
feelfreelinux committed May 14, 2024
1 parent 80a1a7c commit ba867f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,5 +270,5 @@ class BootstrapRepositoryImpl(
}

override val isBootstrapInstalled: Boolean
get() = File("$FILES_PATH/bootstrap/build-version.txt").exists()
get() = File("$FILES_PATH/bootstrap/bootstrap").exists()
}
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,6 @@ class OctoPrintHandlerRepositoryImpl(

// Validate installation
val isInstalledProperly: Boolean
get() = !bootstrapRepository.runCommand("ls $octoprintPath").getOutputAsString()
.contains("No such")
get() = bootstrapRepository.runCommand("ls $octoprintPath && echo \"available\"").getOutputAsString()
.contains("available")
}

0 comments on commit ba867f5

Please sign in to comment.