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

syntax error: operand expected #568

Open
rdlphmchrd opened this issue Apr 28, 2020 · 5 comments
Open

syntax error: operand expected #568

rdlphmchrd opened this issue Apr 28, 2020 · 5 comments
Labels
bug needs_testing Can't be confirmed at the moment, but more testing is needed to be sure.

Comments

@rdlphmchrd
Copy link

Bug

I have a problem when i want to push to the remote server with the 1.6.0 version of git-ftp.
No file deploy to the server and i have this error:

.../path/git-ftp: line 1158: =: syntax error: operand expected (error token is "=")

Have you any idea to resolve it ?

Thanks

Environment

Mac Catalina

@mkllnk
Copy link
Member

mkllnk commented Apr 28, 2020

Thank you for reporting this. I'm wondering if Catalina contains an update that reduces the features of the shell. The line you are referring to is:

git-ftp/git-ftp

Line 1158 in f6dcf62

[ -n "$config" ] && INSECURE="$(boolean $config)"

Can you try typing the following in a terminal and see if you get a similar error?

[ -n "present" ] && ABC="abc" 

@LukasFritzeDev
Copy link
Collaborator

Catalina is using zsh by default instead of bash. Maybe this might cause this issue?

@rdlphmchrd
Copy link
Author

With this following code it works:


[ -n "present" ] && ABC="abc" 

@LukasFritzeDev
Copy link
Collaborator

Can you tell us which git-ftp command you were trying to execute? (the full command with all options)

@rdlphmchrd
Copy link
Author

yes

git ftp push -vv

@LukasFritzeDev LukasFritzeDev added bug needs_testing Can't be confirmed at the moment, but more testing is needed to be sure. labels May 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs_testing Can't be confirmed at the moment, but more testing is needed to be sure.
Projects
None yet
Development

No branches or pull requests

3 participants