Skip to content

Make the update.sh script MacOSX friendly #12

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

Closed
wants to merge 2 commits into from
Closed

Make the update.sh script MacOSX friendly #12

wants to merge 2 commits into from

Conversation

ggtools
Copy link
Contributor

@ggtools ggtools commented Mar 24, 2015

When running under Mac OSX, the -f flag will be remove from the readlink arguments and sed will be changed to gsed.

Behavior under Linux is unchanged.

@md5
Copy link
Contributor

md5 commented Mar 24, 2015

I don't see anything about gsed in this PR. This seems to be a duplicate of #11.

@ggtools
Copy link
Contributor Author

ggtools commented Mar 24, 2015

Yup you're right everything hasn't been pushed. Sorry

Original behaviour on Linux is unchanged while making it work on
Mac OS X.
@@ -1,11 +1,19 @@
#!/bin/bash
set -e

cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
if [[ $(uname) == "Darwin" ]]; then
Copy link
Member

Choose a reason for hiding this comment

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

This might be better written with single brackets since no pattern matching is being done:

if [  "$(uname)" = 'Darwin' ]; then

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@mi-hol
Copy link

mi-hol commented Dec 22, 2016

@yosifkit could you please comment on chance for this PR to get merged?

@yosifkit
Copy link
Member

Since we've moved the update.sh script to be run by a bot; I don't see a need to run it locally on a Mac.

@mi-hol
Copy link

mi-hol commented Dec 30, 2016

@ggtools with above answer, would it make sense to close this?

@tianon
Copy link
Member

tianon commented Apr 5, 2017

Indeed, closing given that update.sh is now run automatically by @docker-library-bot. 👍

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.

5 participants