Skip to content
Snippets Groups Projects
Unverified Commit eaf88765 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #14128 from Homebrew/codespaces_prebuild_fix

devcontainer/on-create-command: fix prebuild handling.
parents ecfe4fe6 709bb23d
No related merge requests found
......@@ -5,8 +5,9 @@ set -e
sudo chmod -R g-w,o-w /home/linuxbrew
# everything below is too slow to do unless prebuilding so skip it
if [ -z "$CODESPACES_PREBUILD_TOKEN" ]
then
CODESPACES_ACTION_NAME="$(cat /workspaces/.codespaces/shared/environment-variables.json | jq -r '.ACTION_NAME')"
if [ "$CODESPACES_ACTION_NAME" != "createPrebuildTemplate" ];
echo "Skipping slow items, not prebuilding."
exit 0
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment