We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c9615d commit 17d357dCopy full SHA for 17d357d
.github/workflows/openwrt-release.yml
@@ -68,6 +68,18 @@ jobs:
68
--exclude='.github' \
69
./ feed/${PKG_NAME}/
70
71
+ - name: ✅ Validate shell script syntax
72
+ run: |
73
+ echo "🔍 Checking shell script syntax..."
74
+ find feed/${PKG_NAME}/files/etc/init.d/ -type f -name '*' 2>/dev/null | while read -r script; do
75
+ if [ -f "$script" ]; then
76
+ echo "Checking syntax of: $script"
77
+ bash -n "$script" || { echo "❌ Syntax error in $script"; exit 1; }
78
+ echo "✅ $script syntax OK"
79
+ fi
80
+ done
81
+ echo "✅ All shell scripts passed syntax validation"
82
+
83
- name: 🧮 Compute ARCH
84
run: |
85
if [ "${{ matrix.version }}" = "snapshots" ]; then
0 commit comments