From bf45aa9f6bd1a0316041a5e5b921339127ca72dd Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Mon, 16 May 2022 02:37:37 -0700 Subject: [PATCH] refactor(runner/entrypoint): don't mv externalstmp if it's not there (#1315) --- runner/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runner/entrypoint.sh b/runner/entrypoint.sh index 887239c9..1af2b0cb 100755 --- a/runner/entrypoint.sh +++ b/runner/entrypoint.sh @@ -134,9 +134,9 @@ cat .runner # -H "Authorization: bearer ${GITHUB_TOKEN}" # https://api.github.com/repos/USER/REPO/actions/runners/171 -if [ -z "${UNITTEST:-}" ]; then +# Hack due to the DinD volumes +if [ -z "${UNITTEST:-}" ] && [ -e ./externalstmp ]; then mkdir -p ./externals - # Hack due to the DinD volumes mv ./externalstmp/* ./externals/ fi