Added imagemagick support to the github action #16
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
javascript
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
thayen/portfolio-site!16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "favicon-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Code Review
This pull request updates
scripts/mkicons.shto dynamically detect the ImageMagick command (magickorconvert) before generating icons. Feedback includes double-quoting the command variable for robustness and refactoring repetitive icon generation steps into a loop to improve maintainability.@ -1,15 +1,23 @@#!/bin/bashThe variable
${cmd}should be double-quoted to prevent word splitting and globbing, following the Google Shell Style Guide. This ensures the script remains robust even if the command path contains spaces or special characters.These lines repeat the same command structure with different sizes. Refactoring this into a loop improves maintainability and adheres to the DRY (Don't Repeat Yourself) principle. It also ensures that any future changes to the command flags or naming conventions only need to be updated in one place.