8000 MNT: Check if running inside repo2docker more explicitly (#30835) · lesteve/scikit-learn@02ce5b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 02ce5b2

Browse files
yuvipandalesteve
andcommitted
MNT: Check if running inside repo2docker more explicitly (scikit-learn#30835)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
1 parent 6a0838c commit 02ce5b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.binder/postBuild

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ set -e
66
# inside a git checkout of the scikit-learn/scikit-learn repo. This script is
77
# generating notebooks from the scikit-learn python examples.
88

9-
if [[ ! -f /.dockerenv ]]; then
10-
echo "This script was written for repo2docker and is supposed to run inside a docker container."
11-
echo "Exiting because this script can delete data if run outside of a docker container."
9+
if [[ -z "${REPO_DIR}" ]]; then
10+
echo "This script was written for repo2docker and the REPO_DIR environment variable is supposed to be set."
11+
echo "Exiting because this script can delete data if run outside of a repo2docker context."
1212
exit 1
1313
fi
1414

0 commit comments

Comments
 (0)
0