-
Notifications
You must be signed in to change notification settings - Fork 96
Fix config format outputted by preinstall script #1149
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
Conversation
@@ -130,8 +130,13 @@ command: | |||
skip_verify: false | |||
" | |||
|
|||
echo "$v3_config_contents" > "$v3_config_file" \ | |||
|| err_exit "Failed to write v3 config" | |||
if [ -n "$( echo -e )" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure this will only fail when echo
itself isn't found
sh-3.2$ echo -e
-e
sh-3.2$ echo $?
0
|| err_exit "Failed to write v3 config" | ||
if [ -n "$( echo -e )" ]; then | ||
echo "$v3_config_contents" > "$v3_config_file" \ | ||
|| err_exit "Failed to write v3 config" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this err_exit
condition will never be executed since the echo won't fail even with empty string etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sh-3.2$ echo "" > i_dont_exist
sh-3.2$ echo $?
0
Proposed changes
Fix config format outputted by preinstall script.
Checklist
Before creating a PR, run through this checklist and mark each as complete.
CONTRIBUTING
documentmake install-tools
and have attached any dependency changes to this pull requestREADME.md
)