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

Potential Alternative to Echo for File Transfer #77

Merged
merged 2 commits into from Dec 15, 2022

Conversation

alexandermichels
Copy link
Member

The usage of echo ${content} >> ${file) has caused a few problems in the Core when trying to write bash functions or environmental variables (see #69). This PR seeks to replace that by instead creating a temporary local file, transferring it, and then deleting the local file.

Overview of Changes:

  • New transferFile function which performs the file transfer part of the upload function without the zip/unzip. upload now calls transferFile.
  • Rework of createFile to create a local temp file with a random unique name, transfer the file using transferFile, and delete the local copy.

@mitkotak mitkotak mentioned this pull request Dec 15, 2022
4 tasks
Copy link
Collaborator

@mitkotak mitkotak left a comment

Choose a reason for hiding this comment

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

LGTM !

@alexandermichels alexandermichels merged commit 9ee5ff2 into cybergis:v2 Dec 15, 2022
@alexandermichels alexandermichels added this to the v2.2 milestone Jan 24, 2023
@alexandermichels alexandermichels modified the milestones: v2.3, v2.2 Apr 3, 2023
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.

None yet

2 participants