Skip to content

Commit 2e5e336

Browse files
wspearCopilot
andauthored
Update e4s_cl/cli/commands/__execute.py
Co-authored-by: Copilot <[email protected]>
1 parent 11444d2 commit 2e5e336

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

e4s_cl/cli/commands/__execute.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,10 +468,10 @@ def main(self, argv):
468468
if len(parts) == 2:
469469
source, dest = parts
470470

471-
if _check_access(path):
472-
container.bind_file(path, option=FileOptions.READ_WRITE)
473-
elif dest and _check_access(source):
471+
if dest and _check_access(source):
474472
container.bind_file(source, dest=dest, option=FileOptions.READ_WRITE)
473+
elif _check_access(path):
474+
container.bind_file(path, option=FileOptions.READ_WRITE)
475475
else:
476476
LOGGER.error("File '%s' not found.", source)
477477

0 commit comments

Comments
 (0)