Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldelucia committed Nov 20, 2024
1 parent 8d452aa commit f7d6bb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
- name: Setup prerequisites
run: |
mkdir -p dash-evo-tool/
cp .env.example dash-evo-tool/.env
cp -r dash_core_configs/ dash-evo-tool/dash_core_configs
- name: Install Rust toolchain
Expand Down
5 changes: 3 additions & 2 deletions src/app_dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ pub fn copy_env_file_if_not_exists() {
let env_example_file_in_exe_dir = PathBuf::from(".env.example");
if env_example_file_in_exe_dir.exists() && env_example_file_in_exe_dir.is_file() {
fs::copy(&env_example_file_in_exe_dir, env_file_in_app_dir)
.expect("Failed to copy main net env file");
.expect("Failed to copy env file");
} else {
panic!("Failed to find or create environment variables");
let env_file_in_exe_dir = PathBuf::from(".env");
fs::copy(&env_file_in_exe_dir, env_file_in_app_dir).expect("Failed to copy env file");
}
}
}

0 comments on commit f7d6bb2

Please sign in to comment.