-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
#!/bin/bash | ||
set -Eeuox pipefail | ||
|
||
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
# check if we're running in codespace or gitpod, and call the correct shell script to bootstrap | ||
# gitpod: GITPOD_WORKSPACE_ID | ||
# codespace: CODESPACES | ||
if [[ -n "${GITPOD_WORKSPACE_ID:-}" ]]; then | ||
echo "Running in gitpod" | ||
"$ROOT_DIR"/bootstrap-gitpod.sh | ||
echo "Running in gitpod" | ||
"$ROOT_DIR"/bootstrap-gitpod.sh | ||
elif [[ -n "${CODESPACES:-}" ]]; then | ||
echo "Running in codespace" | ||
"$ROOT_DIR"/bootstrap-codespace.sh | ||
echo "Running in codespace" | ||
"$ROOT_DIR"/bootstrap-codespace.sh | ||
else | ||
echo "Running in unknown environment" | ||
exit 1 | ||
echo "Running in unknown environment" | ||
exit 1 | ||
fi |