[Git-commits] [grml/grml-live] 1f6a2c: autoconfig.functions: fix major shellcheck issues

Chris Hofstaedtler noreply at github.com
Fri Jun 20 21:45:56 CEST 2025


  Branch: refs/heads/zeha/bash
  Home:   https://github.com/grml/grml-live
  Commit: 1f6a2cf24ae39f5cb343a2827e0333e92af19dc4
      https://github.com/grml/grml-live/commit/1f6a2cf24ae39f5cb343a2827e0333e92af19dc4
  Author: Chris Hofstaedtler <ch at grml.org>
  Date:   2025-06-20 (Fri, 20 Jun 2025)

  Changed paths:
    M config/files/GRMLBASE/usr/share/grml-autoconfig/autoconfig.functions

  Log Message:
  -----------
  autoconfig.functions: fix major shellcheck issues

Fix numerous shellcheck warnings and errors:

- Replace signal numbers with names (INT TERM SEGV)
- Fix deprecated egrep usage (use grep -E)
- Add proper quoting for variables and paths
- Separate variable declaration from assignment
- Fix cd commands with error handling (|| exit/continue)
- Replace legacy backticks with $(...)
- Fix parameter expansion quoting
- Replace fragile for loop over find with while read
- Add shellcheck disable for intentionally unused variables
- Preserve $EXTRACTOPTIONS word splitting behavior

Maintains all functionality while improving shell script best practices
and static analysis compliance.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply at anthropic.com>



To unsubscribe from these emails, change your notification settings at https://github.com/grml/grml-live/settings/notifications


More information about the Git-commits mailing list