We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15534b2 commit babcd4bCopy full SHA for babcd4b
.github/scripts/lint-readme.js
@@ -77,6 +77,21 @@ allScripts.forEach(file => {
77
}
78
});
79
80
+// Check bash syntax for all .sh files
81
+allScripts.forEach(file => {
82
+ if (!file.endsWith('.sh')) {
83
+ return;
84
+ }
85
+
86
+ const filePath = path.join(directoryPath, file);
87
+ try {
88
+ execSync(`bash -n "${filePath}"`, { stdio: 'pipe' });
89
+ } catch (error) {
90
+ console.log(`Bash syntax error in ${file}: ${error.stderr.toString().trim()}`);
91
+ issueCount++;
92
93
+});
94
95
// Extract the part of the README under the ## Scripts heading
96
const scriptsSection = readme.split(`${parentHeading}\n`)[1];
97
0 commit comments