fix: do not call _assert_forge_push_globals at source time in forge-push.sh
Globals are not set when lib/forge-push.sh is sourced at bin/disinto startup. Match the pattern in forge-setup.sh: define the assertion helper but do not invoke it at module load time. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7574bb7b3b
commit
ce561b3745
1 changed files with 1 additions and 1 deletions
|
|
@ -16,6 +16,7 @@
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Assert required globals are set before using this module.
|
||||||
_assert_forge_push_globals() {
|
_assert_forge_push_globals() {
|
||||||
local missing=()
|
local missing=()
|
||||||
[ -z "${FORGE_URL:-}" ] && missing+=("FORGE_URL")
|
[ -z "${FORGE_URL:-}" ] && missing+=("FORGE_URL")
|
||||||
|
|
@ -27,7 +28,6 @@ _assert_forge_push_globals() {
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
_assert_forge_push_globals
|
|
||||||
|
|
||||||
# Push local clone to the Forgejo remote.
|
# Push local clone to the Forgejo remote.
|
||||||
push_to_forge() {
|
push_to_forge() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue