Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Fixes to the dev workflow scripts for OSX#7257

Merged
jhendrixMSFT merged 1 commit intodotnet:masterfrom
maririos:dw
Mar 28, 2016
Merged

Fixes to the dev workflow scripts for OSX#7257
jhendrixMSFT merged 1 commit intodotnet:masterfrom
maririos:dw

Conversation

@maririos
Copy link
Member

sync.sh was not marked as executable and had a syntax error.

cc: @naamunds @weshaggard @joperezr

@maririos
Copy link
Member Author

FYI @jhendrixMSFT


if [ "$sync_src" == true ]; then
echo "Fetching git database from remote repos..."
git fetch --all -p -v &>> $sync_log
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure what the & was doing there to begin with, did you test if this works on Ubuntu?

Copy link
Member Author

Choose a reason for hiding this comment

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

Me neither.
Yes, I tested it in Ubuntu and OS X

@naamunds why do we have & there?

Copy link
Member

Choose a reason for hiding this comment

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

@joperezr @maririos The & was there to redirect both stderr and stdout to the file. Most of the output from git fetch comes from stderr, so it's not sufficient to just redirect stdout to the file. This documentation has more info about I/O redirection in Bash.

According to that guide, the &> was added in Bash 4, so that would explain the issue running it on OS X, where Bash 2 is still used by default, I think. I had to make a fix for that reason in fe6ac97.

It looks like a workaround is to use >>filename 2>&1; I'll test that and then send out a PR if it works.

Copy link
Member

Choose a reason for hiding this comment

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

I've created #7312.

@joperezr
Copy link
Member

Other than that small comment and assuming that this is tested in Ubuntu and OSX it LGTM

Darwin)
OS=OSX
__DOTNET_PKG=dotnet-osx-x64
ulimit -n 2048
Copy link
Member

Choose a reason for hiding this comment

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

Note that this is only going to apply to the current session.

Copy link
Member

Choose a reason for hiding this comment

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

Does that mean that if this script calls in to another sh script, that one won't have this setting? If so then we need to apply this in the init-tools in buildtools as well.

Copy link
Member

Choose a reason for hiding this comment

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

That should be fine.

@jhendrixMSFT jhendrixMSFT merged commit 26e83ae into dotnet:master Mar 28, 2016
@maririos maririos deleted the dw branch August 25, 2016 21:59
@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Fixes to the dev workflow scripts for OSX

Commit migrated from dotnet/corefx@26e83ae
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants