Skip to content

Commit

Permalink
Merge pull request #2378 from Mindful-AI-Assistants/FabianaCampanari-…
Browse files Browse the repository at this point in the history
…patch-1

Update post-create.sh
  • Loading branch information
FabianaCampanari authored Jul 7, 2024
2 parents 380ebc7 + c103d3e commit 5526357
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/bin/bash
#!/usr/bin/env bash
gh release download --repo dependabot/cli -p "*linux-amd64.tar.gz"
tar xzvf ./*.tar.gz >/dev/null 2>&1
sudo mv dependabot /usr/local/bin
rm ./*.tar.gz

set -e
# The image comes loaded with 8.0 preview SDK, but we need a stable 7.0 runtime for running tests
sudo wget https://dot.net/v1/dotnet-install.sh
sudo chmod +x dotnet-install.sh
sudo ./dotnet-install.sh -c 7.0 --runtime dotnet --install-dir /usr/local/dotnet/current
sudo rm ./dotnet-install.sh

if [[ "${CODESPACES}" == true ]]; then
echo "Fixing permissions of /tmp for GitHub Codespaces..." >&2
sudo chmod 1777 /tmp
fi

pnpm install
echo "export LOCAL_GITHUB_ACCESS_TOKEN=$GITHUB_TOKEN" >> ~/.bashrc

0 comments on commit 5526357

Please sign in to comment.