Skip to content

Commit

Permalink
Check that the path input to geode config setup exists (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
balt-dev authored Dec 8, 2024
1 parent ebeba50 commit 1d9253a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ pub fn subcommand(config: &mut Config, cmd: Info) {
// Verify path is valid
let path = PathBuf::from(buf.trim());

if !path.exists() {
fail!("The path must exist");
continue;
}

#[allow(clippy::collapsible_else_if)]
if platform == "win" {
if path.is_dir() {
Expand Down

0 comments on commit 1d9253a

Please sign in to comment.