Skip to content

Commit

Permalink
shfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
topher200 committed Feb 11, 2024
1 parent 4190c17 commit 7055e7b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bootstrap.sh
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

0 comments on commit 7055e7b

Please sign in to comment.