Skip to content

Conversation

@devlinf
Copy link
Contributor

@devlinf devlinf commented Nov 12, 2025

Removed commas from "brew_array" between "8.2" and "8.3" versions.

Added comment for Apache folder "apache_conf_path", if Apache is installed via Home Brew on Apple Silicon

Removed commas from "brew_array" between "8.2" and "8.3" versions.

Added comment for Apache folder "apache_conf_path", if Apache is installed via Home Brew on Apple Silicon
Copilot AI review requested due to automatic review settings November 12, 2025 14:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a syntax error in the brew_array definition and adds helpful comments for Apache configuration paths on Apple Silicon Macs.

  • Fixed bash array syntax by removing commas between array elements "8.2", "8.3", and "8.4"
  • Added documentation comments for alternative Apache configuration path when using Homebrew on Apple Silicon

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
fi

apache_change=1
# Default Apache httpd folder

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

even better?:

apache_conf_path=""
apache_paths=(
    "/opt/homebrew/etc/httpd/httpd.conf"  # installed via Homebrew (new Apple Silicon)
    "/usr/local/etc/httpd/httpd.conf"  # installed via Homebrew (Intel)  ?
    "/etc/apache2/httpd.conf"  # macOS default apache path
)
# Iterate over apache_paths to find first path that exists
for path in "${apache_paths[@]}"; do
    apache_conf_path="$path"
    if [[ -f "$path" ]]; then
        break
    fi
done

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes!

@ikari7789 ikari7789 merged commit f790d40 into philcook:master Nov 25, 2025
0 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants