info
This commit is contained in:
parent
dd5af029a7
commit
7b3e5f7028
18
info
Executable file
18
info
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
ENV_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
|
CONFIG_FILE="$ENV_DIR/.systems"
|
||||||
|
|
||||||
|
source $ENV_DIR/bin/denv_msg
|
||||||
|
|
||||||
|
# Get (newest) DEV_ENV_PATH
|
||||||
|
source ~/.profile
|
||||||
|
denv_info_msg "[dev-env]: $DEV_ENV_PATH"
|
||||||
|
|
||||||
|
# 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"
|
||||||
Loading…
Reference in New Issue
Block a user