devcontainer/on-create-command: fix prebuild handling.

`CODESPACES_PREBUILD_TOKEN` has been unset as it breaks other things.
This commit is contained in:
Mike McQuaid 2022-11-09 15:38:40 +00:00
parent 6990e5f537
commit 709bb23d49
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829

View File

@ -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