From 24b2273374f47ea6afc9e718031a58fa32a93b04 Mon Sep 17 00:00:00 2001 From: RAHenriksen Date: Fri, 13 Dec 2024 11:38:39 +0100 Subject: [PATCH] updated install.sh to account for multiple config files within subdir --- install.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) mode change 100755 => 100644 install.sh diff --git a/install.sh b/install.sh old mode 100755 new mode 100644 index 5e21ebb..364c5b8 --- a/install.sh +++ b/install.sh @@ -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:")