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

Update update-to-head to include an override for docker builds #122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions update-to-head.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ for cmd in $PYTHON git; do
done

# People never read docs anyway, so let the machine check...
if [ -v $I_READ_THE_DOCS ]; then #I even read the source and """know what i'm doing"""
test -f /proc/1/cgroup -a $(grep -c :/docker /proc/1/cgroup) -gt 0 && in_docker=1 || in_docker=0
test $(id -u) -ne 0 -o $in_docker -eq 1 || { echo "Do NOT install as root! $rtfm"; exit 1; }
test -f ./bin/activate && vpy=$PWD/bin/python || vpy=$PYTHON
Expand All @@ -35,6 +36,7 @@ print("Using Python %s" % sys.version)
assert sys.version_info >= (2, 7), "Use Python 2.7! Read the docs."
assert sys.version_info < (3,), "Use Python 2.7! Read the docs."
.
fi

echo "Updating your installation..."

Expand Down