mirror of
https://github.com/johndoe6345789/SparkOS.git
synced 2026-04-24 13:34:56 +00:00
Add clarifying comments about bash usage in build scripts
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -39,8 +39,8 @@ SparkOS aims to be:
|
||||
- Comment complex logic
|
||||
|
||||
- **Shell Scripts**: Follow Google Shell Style Guide
|
||||
- Use `#!/bin/sh` for POSIX-compliant scripts (preferred for busybox compatibility)
|
||||
- Use `#!/bin/bash` only when bash-specific features are required
|
||||
- For runtime scripts (inside rootfs): Use `#!/bin/sh` for POSIX-compliant scripts (busybox compatibility)
|
||||
- For build scripts (host system): Can use `#!/bin/bash` when bash-specific features are needed
|
||||
- Quote variables
|
||||
- Use meaningful variable names
|
||||
|
||||
|
||||
Reference in New Issue
Block a user