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

quote all args #617

Merged
merged 2 commits into from
Oct 9, 2021
Merged

quote all args #617

merged 2 commits into from
Oct 9, 2021

Conversation

EricClaeys
Copy link
Collaborator

No description provided.

@@ -94,14 +94,14 @@ else # sftp/ftp
[ "${LFTP_COMMANDS}" != "" ] && echo ${LFTP_COMMANDS}
# xxx TODO: escape double quotes in PASSWORD - how? With \ ?
P="${PASSWORD}"
echo open --user "\"${USER}\"" --password "\"${P}\"" "${PROTOCOL}://${HOST}"
echo "open --user '${USER}' --password '${P}' '${PROTOCOL}://${HOST}' "
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should move away from $USER -- this is a reserved environment variable that is set to the logged in user's name.

Maybe:
UPLOAD_USER
UPLOAD_PASS
?

Copy link
Collaborator

Choose a reason for hiding this comment

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

or REMOTE_USER / REMOTE_PASS

Copy link
Collaborator

@linuxkidd linuxkidd left a comment

Choose a reason for hiding this comment

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

Our next update on this should be to move away from $USER, but seems it has likely been working, so we'll merge this to alleviate other potential issues.

@linuxkidd linuxkidd merged commit c9c5301 into master Oct 9, 2021
@EricClaeys EricClaeys deleted the upload.sh-quote-args branch October 12, 2021 01:29
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