Skip to content

Commit e7f00a3

Browse files
Merge branch 'main' of github.com:appdevforall/iiab-android into fix/ADFA-4893-books-homologate
2 parents 6c5ac01 + 32bfe91 commit e7f00a3

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎tools/rebuild-dashboard.sh‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
# tools/rebuild-dashboard.sh [CLONE_DIR] — ADFA-5011 / ADFA-5051
2+
# tools/rebuild-dashboard.sh [BRANCH] [CLONE_DIR] — ADFA-5011 / ADFA-5051
33
#
44
# Rebuild ONLY the dash-node REST API from the on-device clone, without a rootfs rebuild.
55
# Blue-green + verify-before-commit so the live API is never left in a broken or misreporting state:
@@ -22,8 +22,12 @@
2222
# this script. Single-flight via a lock dir; progress in $LOG; state in $STATUS for the app.
2323
set -u
2424

25-
CLONE_DIR="${1:-/opt/iiab-android}"
26-
BRANCH="${K2GO_BRANCH:-main}"
25+
# Simpler invocation: BRANCH is the value that changes, so it's $1 (env K2GO_BRANCH still works, which
26+
# is how the app's detached REST call passes it). CLONE_DIR is the optional $2 — the install location is
27+
# almost always the same, so it defaults; pass it only if it moved.
28+
# sh tools/rebuild-dashboard.sh <branch> [clone_dir]
29+
BRANCH="${1:-${K2GO_BRANCH:-main}}"
30+
CLONE_DIR="${2:-/opt/iiab-android}"
2731
SRC="$CLONE_DIR/static/dashboard"
2832
LIVE="/library/dashboard"
2933
STAGE="/library/dashboard.staging"

0 commit comments

Comments
 (0)