Skip to content

Conversation

Williangalvani
Copy link
Member

@Williangalvani Williangalvani commented May 30, 2024

the current "echo" method can break files with "

Can be tested on my remote williangalvani/blueos-core:upload_file

just take something out of cmdline.txt or config.txt and restart the core container

@Williangalvani Williangalvani force-pushed the upload_file branch 5 times, most recently from 5447a9e to 9033bc2 Compare May 31, 2024 12:15
@Williangalvani Williangalvani force-pushed the upload_file branch 6 times, most recently from 9f58511 to 88b5849 Compare June 3, 2024 16:37
@Williangalvani Williangalvani marked this pull request as ready for review June 3, 2024 17:40
@Williangalvani Williangalvani requested review from patrickelectric and joaoantoniocardoso and removed request for patrickelectric June 3, 2024 17:41
Copy link
Member

@joaoantoniocardoso joaoantoniocardoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇 for using scp

logger.warning("SSH key not found, falling back to password authentication")
ret = upload_file_with_password(temp_file_in_container, temp_file_in_host, check)
logger.debug(ret)
run_command(f"sudo mv {temp_file_in_host} {destination}")
Copy link
Member

@joaoantoniocardoso joaoantoniocardoso Jun 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should only move if the (previous) command succeeds

@Williangalvani Williangalvani force-pushed the upload_file branch 2 times, most recently from ce26d9c to 915f1e7 Compare June 4, 2024 00:01
@Williangalvani Williangalvani merged commit 69d9d6b into bluerobotics:master Jun 4, 2024
@Williangalvani Williangalvani deleted the upload_file branch June 4, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants