tDo not use several name commands in find - andersdamsgaard.com - my photography webpage
(HTM) git clone git://src.adamsgaard.dk/andersdamsgaard.com
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit 596c261b3af29785d46b932ef8e0fe3392fe6126
(DIR) parent e7339b63c3e92d6fd0ac1e4ea3cc44c09542c12f
(HTM) 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 +---------
M Makefile | 1 -
2 files changed, 1 insertion(+), 10 deletions(-)
---
(DIR) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
t@@ -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
(DIR) diff --git a/Makefile b/Makefile
t@@ -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' \