Only mkdir/copy if it hasn't been done

This commit is contained in:
Peter Newman
2020-12-02 17:59:40 +00:00
committed by GitHub
parent f49504ca68
commit c5dbe6fbee
+2 -2
View File
@@ -16,8 +16,8 @@ EXAMPLE_MISSPELLING_COUNT=5
export RUNNER_TEMP="/foo/runner_temp"
# Simulate the Dockerfile COPY command
sudo mkdir /code/
sudo cp codespell-problem-matcher/codespell-matcher.json /code/
[ -d "/code/" ] || sudo mkdir /code/
[ -f "/code/codespell-matcher.json" ] || sudo cp codespell-problem-matcher/codespell-matcher.json /code/
# This function runs before every test
function setup() {