Skip to content

Commit 7692c9e

Browse files
committed
Unify flags and shebangs across scripts.
1 parent 3bba96b commit 7692c9e

File tree

9 files changed

+15
-13
lines changed

9 files changed

+15
-13
lines changed

brev/dev-build.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# If a tutorial name is provided (e.g., "accelerated-python"), only that tutorial is built.
99
# If no argument is provided, all tutorials are built.
1010

11-
set -euo pipefail
11+
set -eu
1212

1313
SCRIPT_PATH=$(cd $(dirname ${0}); pwd -P)
1414
REPO_ROOT=$(cd ${SCRIPT_PATH}/..; pwd -P)

brev/dev-start.bash

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Example:
99
# ./dev-start.bash accelerated-python
1010

11-
set -euo pipefail
11+
set -eu
1212

1313
SCRIPT_PATH=$(cd $(dirname ${0}); pwd -P)
1414
REPO_ROOT=$(cd ${SCRIPT_PATH}/..; pwd -P)
@@ -54,7 +54,6 @@ docker volume create --driver local \
5454

5555
echo "Starting tutorial: ${TUTORIAL_NAME}"
5656
cd ${MOUNT}
57-
export ACH_DISABLE_GIT_PULL_ON_START=1
5857
docker compose -f ${DOCKER_COMPOSE} up -d
5958

6059
echo "Tutorial ${TUTORIAL_NAME} started successfully!"

brev/dev-stop.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Example:
99
# ./dev-stop.bash accelerated-python
1010

11-
set -euo pipefail
11+
set -eu
1212

1313
SCRIPT_PATH=$(cd $(dirname ${0}); pwd -P)
1414
REPO_ROOT=$(cd ${SCRIPT_PATH}/..; pwd -P)

brev/discover-tutorials.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This script discovers all tutorial directories in the repository.
44
# It outputs one tutorial directory path per line (relative to repo root).
55

6-
set -euo pipefail
6+
set -eu
77

88
SCRIPT_PATH=$(cd $(dirname ${0}); pwd -P)
99
REPO_ROOT=$(cd ${SCRIPT_PATH}/..; pwd -P)

brev/jupyter-generate-plugin-settings.bash

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#!/bin/bash
1+
#! /bin/bash
2+
3+
set -eu
24

35
JUPYTER_HOST="jupyter0-${BREV_ENV_ID}.brevlab.com"
46
NSIGHT_HTTP_URL="https://nsight0-${BREV_ENV_ID}.brevlab.com"

brev/jupyter-start.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#! /bin/bash
22

33
/accelerated-computing-hub/brev/jupyter-generate-plugin-settings.bash
44

brev/nsight-start.bash

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#!/bin/bash
1+
#! /bin/bash
2+
3+
set -eu
24

35
apt-get update
46
apt-get install -y curl

brev/test-docker-compose.bash

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bash
1+
#! /bin/bash
22
#
33
# Test a Docker Compose file by starting and stopping containers.
44
#
@@ -12,7 +12,7 @@
1212
# ./brev/test-docker-compose.bash accelerated-python
1313
# ./brev/test-docker-compose.bash tutorials/accelerated-python/brev/docker-compose.yml
1414

15-
set -euo pipefail
15+
set -eu
1616

1717
# Colors for output
1818
RED='\033[0;31m'
@@ -90,7 +90,6 @@ echo ""
9090
# Start containers
9191
echo "📦 Starting containers..."
9292
echo ""
93-
export ACH_DISABLE_GIT_PULL_ON_START=1
9493
if docker compose -f "${COMPOSE_FILE}" up -d; then
9594
echo ""
9695
echo -e "${GREEN}✅ Containers started successfully${NC}"

brev/test-links.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bash
1+
#! /bin/bash
22
#
33
# Test links in markdown files and Jupyter notebooks using lychee.
44
#
@@ -10,7 +10,7 @@
1010
# ./brev/test-links.bash tutorials/example # Check specific tutorial
1111
# ./brev/test-links.bash . # Check entire repo
1212

13-
set -euo pipefail
13+
set -eu
1414

1515
# Colors for output
1616
RED='\033[0;31m'

0 commit comments

Comments
 (0)