Skip to content

Commit

Permalink
Update Orchestrate.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Josef Edwards <joed6834@colorado.edu>
  • Loading branch information
bearycool11 authored Nov 23, 2024
1 parent 66dce40 commit 234a724
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Orchestrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Description: Integrates consent collection, health checks, payload distribution, and binary deployment.

# Determine the directory of this script
SCRIPT_DIR="$(dirname "$0")"
SCRIPT_DIR="${SCRIPT_DIR:-$(dirname "$0")}"

# Paths and Configuration
LOG_DIR="$SCRIPT_DIR/logs"
Expand Down Expand Up @@ -89,11 +89,10 @@ log "Compilation completed successfully."
# Validate compiled components
log "Validating compiled components..."
for component in "${COMPONENTS[@]}"; do
if [ ! -f "$SCRIPT_DIR/$component" ]; then
log "ERROR: Missing executable for $component. Exiting."
if [ ! -f "$BINARIES_DIR/$component" ]; then
log "ERROR: Missing executable for $component in $BINARIES_DIR. Exiting."
exit 1
fi
cp "$SCRIPT_DIR/$component" "$BINARIES_DIR"
done
log "All components validated and prepared for distribution."

Expand Down Expand Up @@ -178,4 +177,3 @@ echo "Payload Notifications - Success: $SUCCESS_PAYLOAD, Failed: $FAILED_PAYLOAD
echo "Binary Deployments - Success: $SUCCESS_BINARY, Failed: $FAILED_BINARY"
echo "Health Checks - Failed: $FAILED_HEALTH"
log "Deployment process completed."

0 comments on commit 234a724

Please sign in to comment.