Skip to content

Commit 1721eed

Browse files
committed
HACK: Eliminate terminal spam
1 parent adb48aa commit 1721eed

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

postBuild

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
#!/bin/bash -l
22
set -euo pipefail
33

4+
# Resolve spammy terminal user experience. Remove after this PR is merged:
5+
# https://github.com/jupyterhub/repo2docker/pull/1425
6+
# The file is writeable, but the parent directory isn't writeable. `sed
7+
# --in-place` writes a temporary file to the parent directory, so we need to
8+
# work on a copy, then move it.
9+
cp /etc/profile.d/activate-conda.sh /tmp/activate-conda.sh
10+
sed --in-place "s/^set -ex$/set -e/" /tmp/activate-conda.sh
11+
sed --in-place "s/^set +ex$/set +e/" /tmp/activate-conda.sh
12+
mv /tmp/activate-conda.sh /etc/profile.d/activate-conda.sh
13+
414
# Put our custom Jupyter Server config into appropriate platform
515
# This path is determined by looking at output of `jupyter --path` in the hub
616
# We copy both to notebook server config and jupyter server config, because either can be

0 commit comments

Comments
 (0)