Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/healer-pro-pack / scripts/fix_permissions_and_shebangs.sh |
| Date | Not specified in source |
| Repository | Janady13/healer-pro-pack |
| Revision | 8cd241e17bd004fdbdc1ee5e9913e45304671553 |
| Branch | main |
| Path or archive member | scripts/fix_permissions_and_shebangs.sh |
| Original SHA-256 | 0dca062a2db4918e1a51ffaa397e38cd65192873459e1199256bbdcd456f7b2e |
| Git blob SHA | cc4a559c105c48d53a81f71f03e327f6a2fc818a |
| Reading-copy SHA-256 | 0dca062a2db4918e1a51ffaa397e38cd65192873459e1199256bbdcd456f7b2e |
Recovered source transcript
Download complete source text ↓12 lines · 0.4 KB
#!/bin/bash
set -euo pipefail
ROOT="${1:-$PWD}"
echo "🔩 Fixing shebangs & +x under $ROOT ..."
find "$ROOT" -type f -name "*.sh" -print0 | while IFS= read -r -d '' f; do
if ! head -1 "$f" | grep -q "#!"; then
(printf "#!/bin/bash\n"; cat "$f") > "$f.tmp" && mv "$f.tmp" "$f"
fi
chmod +x "$f" || true
done
echo "✅ Permissions & shebangs normalized."