mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
devcontainer/on-create-command: fix prebuild handling.
`CODESPACES_PREBUILD_TOKEN` has been unset as it breaks other things.
This commit is contained in:
parent
6990e5f537
commit
709bb23d49
@ -5,8 +5,9 @@ set -e
|
|||||||
sudo chmod -R g-w,o-w /home/linuxbrew
|
sudo chmod -R g-w,o-w /home/linuxbrew
|
||||||
|
|
||||||
# everything below is too slow to do unless prebuilding so skip it
|
# everything below is too slow to do unless prebuilding so skip it
|
||||||
if [ -z "$CODESPACES_PREBUILD_TOKEN" ]
|
CODESPACES_ACTION_NAME="$(cat /workspaces/.codespaces/shared/environment-variables.json | jq -r '.ACTION_NAME')"
|
||||||
then
|
if [ "$CODESPACES_ACTION_NAME" != "createPrebuildTemplate" ];
|
||||||
|
echo "Skipping slow items, not prebuilding."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user