andersdamsgaard.com

my photography webpage
git clone git://src.adamsgaard.dk/andersdamsgaard.com # fast
git clone https://src.adamsgaard.dk/andersdamsgaard.com.git # slow
Log | Files | Refs | Submodules | README | LICENSE Back to index

commit ab26c64b4472032a2cee4d71bd901052a9dda2f0
parent c7d765d60350cd7da9443f750557e99c423ae6c6
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon,  5 Nov 2018 07:37:19 +0100

Use iname during find

Diffstat:
MMakefile | 22+++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/Makefile b/Makefile @@ -25,19 +25,19 @@ generate-public: # generate public/ hugo # list unprocessed images - find public \ - -name '.DS_Store' \ - -name '*.jpg' \ - -not -name '*resize*.jpg' \ - -not -name '*fill*.jpg' \ - -not -name '*fit*.jpg' \ + find public/ \ + -iname '.DS_Store' \ + -iname '*.jpg' \ + -not -iname '*resize*.jpg' \ + -not -iname '*fill*.jpg' \ + -not -iname '*fit*.jpg' \ # remove unprocessed images find public \ - -name '.DS_Store' \ - -name '*.jpg' \ - -not -name '*resize*.jpg' \ - -not -name '*fill*.jpg' \ - -not -name '*fit*.jpg' \ + -iname '.DS_Store' \ + -iname '*.jpg' \ + -not -iname '*resize*.jpg' \ + -not -iname '*fill*.jpg' \ + -not -iname '*fit*.jpg' \ -delete # report size of build du -h public/