feat(aihr): complete uni-app role workflows
This commit is contained in:
+21
-5
@@ -2,12 +2,28 @@
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
export PATH="/opt/homebrew/bin:/usr/local/bin:$PATH"
|
||||
|
||||
if [[ -f "$ROOT_DIR/.env.local" ]]; then
|
||||
set -a
|
||||
# shellcheck disable=SC1091
|
||||
source "$ROOT_DIR/.env.local"
|
||||
set +a
|
||||
load_env_file() {
|
||||
local env_file="$1"
|
||||
if [[ -f "$env_file" ]]; then
|
||||
set -a
|
||||
# shellcheck disable=SC1090
|
||||
source "$env_file"
|
||||
set +a
|
||||
fi
|
||||
}
|
||||
|
||||
load_env_file "$ROOT_DIR/.env.local"
|
||||
|
||||
if [[ -f "$ROOT_DIR/backend/.env" ]]; then
|
||||
load_env_file "$ROOT_DIR/backend/.env"
|
||||
if [[ -n "${client_id:-}" ]]; then
|
||||
export AIHR_ORG_SYNC_CLIENT_ID="$client_id"
|
||||
fi
|
||||
if [[ -n "${client_secret:-}" ]]; then
|
||||
export AIHR_ORG_SYNC_CLIENT_SECRET="$client_secret"
|
||||
fi
|
||||
fi
|
||||
|
||||
cd "$ROOT_DIR/backend"
|
||||
|
||||
Reference in New Issue
Block a user