Skip to content

Commit

Permalink
adding explicit parens around find name arguments
Browse files Browse the repository at this point in the history
without the explicit paranthesis, only storyboard files
are processed
  • Loading branch information
jakerl authored and mattt committed Mar 23, 2020
1 parent 705c405 commit f646266
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 2019-09-02-dark-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ You _could_ go through each by hand and click each of the visual elements...
or you could run the following command:

```terminal
$ find . -name '*.xib' -or -name '*.storyboard' \
$ find . \( -name '*.xib' -or -name '*.storyboard' \) \
-exec echo {} \; \
-exec xmlstarlet sel -t \
-m "//color[@colorSpace='custom']" -c . -n {} \;
Expand All @@ -781,7 +781,7 @@ you can generate a sorted, unique'd list of
every custom color in every XIB or Storyboard:

```terminal
$ find . -name '*.xib' -or -name '*.storyboard' \
$ find . \( -name '*.xib' -or -name '*.storyboard' \) \
-exec xmlstarlet sel -t \
-m "//color[@colorSpace='custom']" \
-v "concat( @red,' ',@green,' ',@blue,' ',@alpha)" -n {} \; \
Expand Down

0 comments on commit f646266

Please sign in to comment.