Skip to content

Commit

Permalink
updated install.sh to account for multiple config files within subdir
Browse files Browse the repository at this point in the history
  • Loading branch information
RAHenriksen committed Dec 13, 2024
1 parent d2df4f9 commit 24b2273
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion install.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,16 @@ fi

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
REQ_TXT="$SCRIPT_DIR/environment.yml"
LAST_DIR_NAME=$(basename "$SCRIPT_DIR")
CODEDIR="$SCRIPT_DIR/$LAST_DIR_NAME"
echo "The last directory name is: $LAST_DIR_NAME"
echo "the script dir $SCRIPT_DIR"
echo "codeDIR $CODEDIR"

CONFIG_YAML_PATH=$(find $CODEDIR -name "config.yaml")
#CONFIG_YAML_PATH=$(find $SCRIPT_DIR -type f -name "config.yaml")
echo "$CONFIG_YAML_PATH"

CONFIG_YAML_PATH=$(find $SCRIPT_DIR -name "config.yaml")
if test -f "$CONFIG_YAML_PATH";
then
COMPONENT_NAME=$(grep "display_name:.*." $CONFIG_YAML_PATH | tr " " "\n" | grep -v "display_name:")
Expand Down

0 comments on commit 24b2273

Please sign in to comment.