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