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 9f13686 commit 1952656Copy full SHA for 1952656
.github/workflows/scripts/validate-formatting.sh
@@ -14,7 +14,11 @@
14
# limitations under the License.
15
set -e
16
17
-if [[ $(git ls-files --modified) ]]; then
+# Get modified files, excluding pubspec.lock.
18
+# The '|| true' prevents the script from exiting if grep finds no matches.
19
+MODIFIED_FILES=$(git ls-files --modified | grep -v '^pubspec.lock$' || true)
20
+
21
+if [[ $MODIFIED_FILES ]]; then
22
echo ""
23
24
echo "These files are not formatted correctly:"
0 commit comments