Commit graph

11 commits

Author SHA1 Message Date
df886fa772 fix: make infracost_breakdown.sh compatible with bash 3.2 (macOS)
- Replace mapfile with while-read loop for bash 3.2 compatibility
- Fix substring expressions to avoid negative indices:
  (${check: -1} => ${check:$((${#check}-1)):1})
- Replace negative array indexing with explicit length calculation
- Maintain identical functionality while supporting macOS default bash
  version

Signed-off-by: Oliver Ladner <waste@lugh.ch>
2025-06-04 10:26:05 +02:00
Maksym Vlasov
2b35cad50f fix: Add --env-vars, deprecate --envs (#410) 2022-07-12 21:37:53 +03:00
Maksym Vlasov
b12f0c662c feat: Suppress color for all hooks if PRE_COMMIT_COLOR=never set (#409) 2022-07-12 21:37:53 +03:00
Maksym Vlasov
d4902313ce feat: Add support for set env vars inside hook runtime (#408) 2022-07-12 21:37:53 +03:00
Maksym Vlasov
0f25122485 chore: Implement DRY for HOOK_ID (#405) 2022-07-12 21:37:53 +03:00
Maksym Vlasov
caa01c30b3
feat: Allow env vars expansion in --args section for all hooks (#363) 2022-04-26 12:33:58 +02:00
Maksym Vlasov
944a2e5fef
feat: Removed coreutils (realpath) from dependencies for MacOS (#368) 2022-04-18 18:17:15 +02:00
Carlos Miguel Bustillo Rodríguez
7e7c91643e
feat: Improve performance during pre-commit --all (-a) run (#327) 2022-02-10 16:53:37 +01:00
Maksym Vlasov
47229003ff
chore: Add hadolint check for Dockerfiles (#322)
Co-authored-by: Balazs Hamorszky <balihb@gmail.com>
2022-01-11 18:20:29 +01:00
Maksym Vlasov
321fb16693
chore: Document functions (based on google style guide) (#317) 2022-01-11 14:54:42 +01:00
Maksym Vlasov
c5f2a618a8
chore: Improved code structure (moved hooks into a separate dir) (#316) 2022-01-06 16:09:51 +01:00
Renamed from infracost_breakdown.sh (Browse further)