Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/andreijiroh-dev/infra. @ajhalili2006's homelab infrastructure as code wiki.andreijiroh.dev/garden/infraops/homelab
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829#!/usr/bin/env bash# SPDX-License-Identifier: MPL-2.0
if [[ $DEBUG != "" ]]; then set -xfi
GIT_ROOT="$(git rev-parse --show-toplevel)"OLDPWD="$PWD"
if [[ "$PWD" != "$GIT_ROOT" ]]; then echo "going to GIT_ROOT to avoid errors on octodns-sync and friends" # shellcheck disable=SC2164 cd "$GIT_ROOT"fi
if [ -z "${CI}" ]; then dotenvx run -f "$GIT_ROOT/.env.ci" -- deno run -A "$GIT_ROOT/utils/dns-records.ts" "$@"else dotenvx run -f "$GIT_ROOT/.env" -- deno run -A "$GIT_ROOT/utils/dns-records.ts" "$@"fiexitcode=$?
# shellcheck disable=SC2164cd "$OLDPWD"
if [[ $exitcode != "0" ]]; then exit ${exitcode:-"1"}fi