We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fac2eee commit fa2ffe8Copy full SHA for fa2ffe8
ci/test/04_install.sh
@@ -48,16 +48,14 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
48
--env-file /tmp/env \
49
--name $CONTAINER_NAME \
50
$DOCKER_NAME_TAG)
51
-
52
- DOCKER_EXEC () {
53
- docker exec $DOCKER_ID bash -c "export PATH=$BASE_SCRATCH_DIR/bins/:\$PATH && cd $P_CI_DIR && $*"
54
- }
+ export DOCKER_CI_CMD_PREFIX="docker exec $DOCKER_ID"
55
else
56
echo "Running on host system without docker wrapper"
57
58
- bash -c "export PATH=$BASE_SCRATCH_DIR/bins/:\$PATH && cd $P_CI_DIR && $*"
59
60
fi
+
+DOCKER_EXEC () {
+ $DOCKER_CI_CMD_PREFIX bash -c "export PATH=$BASE_SCRATCH_DIR/bins/:\$PATH && cd $P_CI_DIR && $*"
+}
61
export -f DOCKER_EXEC
62
63
if [ -n "$DPKG_ADD_ARCH" ]; then
0 commit comments