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 596c261b3af29785d46b932ef8e0fe3392fe6126
parent e7339b63c3e92d6fd0ac1e4ea3cc44c09542c12f
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon,  5 Nov 2018 09:21:54 +0100

Do not use several name commands in find

Diffstat:
M.gitlab-ci.yml | 10+---------
MMakefile | 1-
2 files changed, 1 insertion(+), 10 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml @@ -14,21 +14,13 @@ pages: - hugo version script: - hugo - - find public -iname '*.jpg' - find public/ - -iname '.DS_Store' - -iname '*.jpg' - -not -iname '*resize*.jpg' - -not -iname '*fill*.jpg' - -not -iname '*fit*.jpg' - - find public/ - -iname '.DS_Store' -iname '*.jpg' -not -iname '*resize*.jpg' -not -iname '*fill*.jpg' -not -iname '*fit*.jpg' -delete - - du -h public/ + - du -h public/ artifacts: paths: - public diff --git a/Makefile b/Makefile @@ -25,7 +25,6 @@ generate-public: # generate public/ and remove unprocessed images hugo find public \ - -iname '.DS_Store' \ -iname '*.jpg' \ -not -iname '*resize*.jpg' \ -not -iname '*fill*.jpg' \