Compare commits
1 commit
da30209ff1
...
566547ee26
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
566547ee26 |
1 changed files with 9 additions and 3 deletions
|
|
@ -310,9 +310,15 @@ backup_import_issues() {
|
||||||
backup_import() {
|
backup_import() {
|
||||||
local tarball="$1"
|
local tarball="$1"
|
||||||
|
|
||||||
# Validate required environment
|
if [ -z "${FORGE_URL:-}" ]; then
|
||||||
[ -n "${FORGE_URL:-}" ] || { echo "Error: FORGE_URL not set" >&2; exit 1; }
|
echo "Error: FORGE_URL not set" >&2
|
||||||
[ -n "${FORGE_TOKEN:-}" ] || { echo "Error: FORGE_TOKEN not set" >&2; exit 1; }
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${FORGE_TOKEN:-}" ]; then
|
||||||
|
echo "Error: FORGE_TOKEN not set" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
backup_log "=== Backup Import Started ==="
|
backup_log "=== Backup Import Started ==="
|
||||||
backup_log "Target: ${FORGE_URL}"
|
backup_log "Target: ${FORGE_URL}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue