Skip to content

Commit

Permalink
Fix copying error in patcher
Browse files Browse the repository at this point in the history
  • Loading branch information
krx committed Aug 1, 2016
1 parent 2183002 commit 3f5499d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/cb_patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ def main():
# Copy over one challenge at a time and patch it
for chal in chals: # Only a few for now
chal_dir = os.path.join(ORIGINAL_CHALLS, chal)
if os.path.isdir(chal_dir):
shutil.copytree(chal_dir,
os.path.join(CHALLENGE_PATH, chal))
dest_dir = os.path.join(CHALLENGE_PATH, chal)
if os.path.isdir(chal_dir) and not os.path.isdir(dest_dir):
shutil.copytree(chal_dir, dest_dir)
patch_challenge(chal)


Expand Down

0 comments on commit 3f5499d

Please sign in to comment.