aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Zsika Phillip <protocol86@users.noreply.github.com>2018-03-15 23:28:52 -0700
committerGravatar GitHub <noreply@github.com>2018-03-15 23:28:52 -0700
commit1395c8202b236188b9e4e1bfc2a3e00244179593 (patch)
tree9c7e4aeae4c95a6a3e412c214b04fe681a2fb6cf /scripts
parent9060078609232082a989c7906e8d53b6c3b490b4 (diff)
Adds exception for invalid parameter (#931)
* Adds exception for invalid parameter * Account for differences between find and git output (#932)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/style.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/style.sh b/scripts/style.sh
index 317c8c6..4589bfc 100755
--- a/scripts/style.sh
+++ b/scripts/style.sh
@@ -97,6 +97,9 @@ files=$(
find . -type f
fi
) | sed -E -n '
+# find . includes a leading "./" that git does not include
+s%^./%%
+
# Build outputs
\%/Pods/% d
\%^./build/% d
@@ -114,7 +117,7 @@ files=$(
\%/vendor/bundle/% d
# Sources within the tree that are not subject to formatting
-\%^./(Example|Firebase)/(Auth|AuthSamples|Database|Messaging)/% d
+\%^(Example|Firebase)/(Auth|AuthSamples|Database|Messaging)/% d
# Checked-in generated code
\%\.pb(objc|rpc)\.% d