Skip to content

Adds --remote-root option support for '=<param>' suffix.#572

Open
avengerx wants to merge 1 commit intogit-ftp:masterfrom
avengerx:fix_remote_root
Open

Adds --remote-root option support for '=<param>' suffix.#572
avengerx wants to merge 1 commit intogit-ftp:masterfrom
avengerx:fix_remote_root

Conversation

@avengerx
Copy link
Copy Markdown

@avengerx avengerx commented May 7, 2020

All other flags taking arguments support this currently. It means using:

--remote-root=my_remote_folder

should work with this change.

All other flags taking arguments support this currently.
@avengerx
Copy link
Copy Markdown
Author

avengerx commented May 7, 2020

I hope the blank lines cleanup is welcome (my editor audo-does this on save)

Comment thread git-ftp
REMOTE_ROOT=$(expr "z$1" : 'z-[^=]*=\(.*\)')
;;
1,*)
print_error_and_die "Too few arguments for option --key." "$ERROR_MISSING_ARGUMENTS"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think there is a copy & past error. It should be option --remote-root

Comment thread git-ftp
REMOTE_ROOT="$2"
shift
else
print_error_and_die "Too few arguments for option --key." "$ERROR_MISSING_ARGUMENTS"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Same here 😆

I think there is a copy & past error. It should be option --remote-root

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