From d76613c0dcabc3aecb9dc03df49b81297f7ee3bc Mon Sep 17 00:00:00 2001 From: ReachableCEO Date: Wed, 2 Jul 2025 18:00:01 -0500 Subject: [PATCH] . --- .../Modules/Security/secharden-scap-stig.sh | 4 +--- ProjectCode/SetupNewSystem.sh | 17 +++++------------ 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/ProjectCode/Modules/Security/secharden-scap-stig.sh b/ProjectCode/Modules/Security/secharden-scap-stig.sh index 96cf47c..bd9fd9a 100644 --- a/ProjectCode/Modules/Security/secharden-scap-stig.sh +++ b/ProjectCode/Modules/Security/secharden-scap-stig.sh @@ -1,19 +1,17 @@ #!/bin/bash #Framework variables are read from hee -source $PROJECT_ROOT_PATH/Framework-Includes/FrameworkVars +source $PROJECT_ROOT_PATH/Framework-ConfigFiles/FrameworkVars #Boilerplate and support functions for framework_include_file in ../Framework-Includes/*; do source "$framework_include_file" done -unset IFS for project_include_file in ../Project-Includes/*; do source "$project_include_file" done -unset IFS # Actual script logic starts here diff --git a/ProjectCode/SetupNewSystem.sh b/ProjectCode/SetupNewSystem.sh index 14dff30..f56ab5a 100644 --- a/ProjectCode/SetupNewSystem.sh +++ b/ProjectCode/SetupNewSystem.sh @@ -8,23 +8,16 @@ export PROJECT_ROOT_PATH PROJECT_ROOT_PATH="$(realpath ../)" #Framework variables are read from hee -source $PROJECT_ROOT_PATH/Framework-Includes/FrameworkVars +source $PROJECT_ROOT_PATH/Framework-ConfigFiles/FrameworkVars -#Boilerplate and support functions -FrameworkIncludeFiles="$(ls -1 --color=none ../Framework-Includes/*)" -IFS=$'\n\t' -for file in "${FrameworkIncludeFiles[@]}"; do - source "$file" +for framework_include_file in ../Framework-Includes/*; do + source "$framework_include_file" done -unset IFS -ProjectIncludeFiles="$(ls -1 --color=none ../Project-Includes/*)" -IFS=$'\n\t' -for file in "${ProjectIncludeFiles[@]}"; do - source "$file" +for project_include_file in ../Project-Includes/*; do + source "$project_include_file" done -unset IFS # Start actual script logic here...