fix REPO_DIR and encode

This commit is contained in:
2025-08-29 17:24:11 -05:00
parent 0d515af0f0
commit b884307cc1
4 changed files with 62 additions and 22 deletions

View File

@@ -1,7 +1,8 @@
#!/usr/bin/env bash
cd "$(dirname "$(readlink -f $0)")/.."
export FB_RUNNING_AS_SCRIPT=1
. main.sh || return 1
thisFile="$(readlink -f "$0")"
export REPO_DIR="$(cd "$(dirname "${thisFile}")/.." && echo "$PWD")"
source "${REPO_DIR}/main.sh" || return 1
scr_name="$(bash_basename $0)"
cmd="${scr_name//.sh/}"
if [[ $DEBUG == 1 ]]; then set -x; fi