#!/bin/bash ENV_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) CONFIG_FILE="$ENV_DIR/.systems" source $ENV_DIR/bin/denv_msg denv_info_msg "[dev-env]: $ENV_DIR" # Iterate through all lines in .systems configuration while IFS=' ' read -r IDENTIFIER DIRECTORY GIT; do # Skip comments and emtpy lines if [[ "$IDENTIFIER" =~ ^#.* ]] || [ -z "$IDENTIFIER" ]; then continue fi denv_echo_msg "[$IDENTIFIER]: systems/$DIRECTORY" done < "$CONFIG_FILE"