Skip to content

Commit

Permalink
Fix: Avoid moving files twice for SPICE installation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Labbeti committed Sep 25, 2023
1 parent c0efbbf commit 6994bd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aac_metrics/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ def _download_spice(
osp.join(spice_unzip_dpath, "spice-1.0.jar"): spice_cache_dpath,
}
for source, target in to_move.items():
shutil.move(source, target)
if not osp.exists(target):
shutil.move(source, target)

# TODO: rm
# script_fname = "install_spice.sh"
Expand Down

0 comments on commit 6994bd9

Please sign in to comment.