Skip to content

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nledford committed Jun 17, 2024
1 parent 50f20fb commit 3545516
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ docker_build:
docker_run:
docker run -h docker-dev-mbp\
-e TZ="America/New_York"\
-it -v "./data/profiles:/data/profiles"\
-it -v "./data/profiles:/profiles" -v "./data/config:/config"\
--rm --name chidori nledford/chidori:latest run -l

install:
Expand Down
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ use crate::plex::Plex;

/// Default config file path where application config will be stored.
fn build_config_path() -> String {
let config_dir = if let Some(dir) = env::var("CONFIG_DIR") {
PathBuf::from_str(dir).expect("Error parsing `CONFIG_DIR`")
let config_dir = if let Ok(dir) = env::var("CONFIG_DIR") {
PathBuf::from_str(&dir).expect("Error parsing `CONFIG_DIR`")
} else {
dirs::config_dir().expect("Could not fetch the user's configuration directory")
}
Expand Down

0 comments on commit 3545516

Please sign in to comment.