Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use FireSim sudo scripts if available #304

Merged
merged 10 commits into from
Jun 19, 2024
Prev Previous commit
Next Next commit
Bump
abejgonzalez committed Jun 17, 2024
commit 4fc1997b758520712c2ef0240284c097e81b65d1
4 changes: 2 additions & 2 deletions wlutil/wlutil.py
Original file line number Diff line number Diff line change
@@ -692,10 +692,10 @@ def copyImgFiles(img, files, direction):
for f in files:
if direction == 'in':
dst = str(getOpt('mnt-dir') / f.dst.relative_to('/'))
run(['cp', '-a', str(f.src), dst])
run(['cp', '-a', '-f', str(f.src), dst])
elif direction == 'out':
src = str(getOpt('mnt-dir') / f.src.relative_to('/'))
run(['cp', '-a', src, str(f.dst)])
run(['cp', '-a', '-f', src, str(f.dst)])
else:
raise ValueError("direction option must be either 'in' or 'out'")