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

Fix Error on install: -bash: -e: command not found #6

Closed
wants to merge 1 commit into from

Conversation

thvd
Copy link

@thvd thvd commented Jul 10, 2019

Fixes #5

Before merging though, i do think it's good to know why in the first place the -e option was added. So we are sure there is nothing breaking with this fix.

@wadewegner
Copy link
Owner

Thanks @thvd. @rrmehta2 can you take a look?

@mloh
Copy link

mloh commented Jul 22, 2019

In commit b5f0a38 the echo command added the -e argument to generate.sh. The next commit only updates sfdx.bash, which was probably the result of running generate.sh and not testing output.

The problem is that when running generate.sh with something other than the correct version of bash, if the resolved echo command doesn't recognize the -e arg, then the running shell will just echo "-e".

So when sfdx.bash was last generated and committed, it was probably done with something other than bash4. Given the comment here: #4 I'm wondering if bash3 was installed for testing and not removed.

@yogeshdixit41
Copy link

I think @mloh is correct. -e was added to generated sfdx as a result of -e flag that was added in . generate.sh. Its weird but for some reason it looks like -e is not required (and adds extra -e character) for interpretation of escape characters when it comes to generating sfdx from generate.sh with echo. So i don't think merging this will break anything. But as of now current master branch is failing because of the extra '-e' character and won't work whatsoever until you remove it from the generated sfdx script.

@umeditor
Copy link

FWIW, this allowed me to install and run the code.

Copy link

@alexrindone alexrindone left a comment

Choose a reason for hiding this comment

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

This worked.

@thvd
Copy link
Author

thvd commented Nov 13, 2019

@wadewegner looks like this pr helps people run the code. Is there anything needed in order to merge this one?

@wadewegner
Copy link
Owner

Sorry all. This should have been fixed a long time ago. I just pushed an update to generate.sh and this resolved the problem.

@wadewegner wadewegner closed this Dec 30, 2019
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.

Error on install: -bash: -e: command not found
6 participants