mirror of
https://github.com/Homebrew/brew.git
synced 2026-08-12 22:29:27 +04:00
devcontainer/on-create-command: fix prebuild handling.
`CODESPACES_PREBUILD_TOKEN` has been unset as it breaks other things.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user