Skip to content

Commit

Permalink
Merge pull request #8 from thunderstore-io/TS-2032/tcli-local-panic-fix
Browse files Browse the repository at this point in the history
[TS-2032] Fix panic when TCLI_HOME does not exist
  • Loading branch information
ethangreen-dev authored Apr 9, 2024
2 parents ae6de7f + 135048c commit 19b0ebb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ pub static TCLI_HOME: Lazy<PathBuf> = Lazy::new(|| {

#[tokio::main]
async fn main() -> Result<(), Error> {
if !TCLI_HOME.is_dir() {
std::fs::create_dir_all(TCLI_HOME.as_path())?;
}

match Args::parse().commands {
Commands::Init {
command,
Expand Down

0 comments on commit 19b0ebb

Please sign in to comment.