#!/usr/bin/env bash __run_prechecks() { # Check if PROFILE_ENV_FILE is set if [ -z "$PROFILE_ENV_FILE" ]; then echo "[ERROR] __run_prechecks: PROFILE_ENV_FILE is not set." return 1 fi # Check if SCRIPTS_DIR is set if [ -z "$SCRIPTS_DIR" ]; then echo "[ERROR] __run_prechecks: SCRIPTS_DIR is not set." return 1 fi # Check if BIN_DIR is set if [ -z "$BIN_DIR" ]; then echo "[ERROR] __run_prechecks: BIN_DIR is not set." return 1 fi } __run_prechecks