Repository navigation
script をリファクタリング&macOS 標準の Bash 3.2 で動く形にする - #52
Merged
Merged
Conversation
Till0196
approved these changes
Jun 17, 2026
oka4shi
approved these changes
Jun 17, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Bash スクリプト群を共通関数化してリファクタリングし、macOS 標準の Bash 3.2 でも動作する構成に寄せた PR です(Bash 4+ 依存の連想配列・mapfile 等を排除)。
Changes:
scripts/lib.shを追加し、色定義・trim・fonts.list パース・小文字化を共通化list.sh/install.sh/check.shを Bash 3.2 互換(非連想配列)な実装へ置換- README から Bash 4 系必須の記述を削除
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| scripts/list.sh | fonts.list 読み取りとインストール済みフォント照合を Bash 3.2 向けに簡素化 |
| scripts/lib.sh | 共通ユーティリティ関数(trim / read_font_entries / lowercase)を新規追加 |
| scripts/install.sh | 共通 lib を利用しつつ、stdin からのフォント取得→DL/展開の流れに整理 |
| scripts/check.sh | 共通 lib を利用しつつ、stdin からの不足フォント表示をカウント方式に整理 |
| README.md | Bash 4+ 必須表記を削除し、macOS 標準 Bash でも使える前提に更新 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
oka4shi
approved these changes
Jun 17, 2026
Till0196
approved these changes
Jun 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
何かあればお願いします