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

Revert %s-formatting for SOURCE_STR when writing to shell profile #1210

Merged
merged 1 commit into from
Aug 23, 2016

Conversation

aredridel
Copy link
Contributor

Fixes #1209

@ljharb
Copy link
Member

ljharb commented Aug 23, 2016

aha, thanks

@aredridel
Copy link
Contributor Author

Of course!

@ljharb ljharb added bugs Oh no, something's broken :-( installing nvm Problems installing nvm itself labels Aug 23, 2016
if ! command grep -qc '/nvm.sh' "${NVM_PROFILE}"; then
echo "=> Appending source string to ${NVM_PROFILE}"
command printf "%s" "${SOURCE_STR}" >> "${NVM_PROFILE}"
if ! command grep -qc '/nvm.sh' "$NVM_PROFILE"; then
Copy link
Member

Choose a reason for hiding this comment

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

do the curlies make a difference? or are you just reverting the whole commit

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The curlies don't matter -- either syntax is legit.

@ljharb
Copy link
Member

ljharb commented Aug 23, 2016

This reverts part of 681c81a.

@ljharb ljharb merged commit 451b67f into nvm-sh:master Aug 23, 2016
@aredridel aredridel deleted the fix-install-sh branch August 28, 2016 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugs Oh no, something's broken :-( installing nvm Problems installing nvm itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants