Skip to content

Fix script directory handling in generate-favicons.sh#49

Closed
Copilot wants to merge 6 commits intomainfrom
copilot/sub-pr-46-another-one
Closed

Fix script directory handling in generate-favicons.sh#49
Copilot wants to merge 6 commits intomainfrom
copilot/sub-pr-46-another-one

Conversation

Copy link

Copilot AI commented Nov 16, 2025

Addresses reviewer feedback on PR #46 regarding temporary file creation in arbitrary directories.

Changes

  • Added absolute path resolution to determine script and project root directories
  • Script now always executes from project root regardless of invocation location
  • Ensures temporary favicon-source.svg is consistently created and cleaned up from project root
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
cd "$PROJECT_ROOT"

This prevents temporary file pollution across different working directories and ensures cleanup always targets the correct location.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

HackingGate and others added 6 commits November 16, 2025 00:27
- Added script to generate all favicon sizes from SVG source with proper color handling
- Updated apple-touch-icon sizes (180x180 primary, added 152x152 for iPad)
- Changed msapplication-TileColor from black to brand blue (#0085E8)
Use any as per
For vector formats like SVG, you can use any to indicate scalability.
https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest/Reference/icons#sizes

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI mentioned this pull request Nov 16, 2025
Copilot AI changed the title [WIP] Update favicon upgrade implementation based on feedback Fix script directory handling in generate-favicons.sh Nov 16, 2025
Copilot AI requested a review from HackingGate November 16, 2025 04:13
Base automatically changed from favicon to main November 16, 2025 06:14
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.

2 participants