mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
started moving away from legacy buildcache command -- process-archive.sh now will use ig by default.
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
542c5a04e3
commit
f74fb5893b
@ -328,15 +328,24 @@ fi
|
||||
|
||||
# build cache...
|
||||
if [ -z $SKIP_CACHE ] ; then
|
||||
# a little tweak to make build cache work...
|
||||
export PYTHONIOENCODING=UTF-8
|
||||
|
||||
# ig...
|
||||
if ! [ -z `command -v ig` ] ; then
|
||||
CACHE="ig init"
|
||||
# buildcache (legacy)...
|
||||
elif [ -z `command -v buildcache` ] ; then
|
||||
# a little tweak to make build cache work...
|
||||
export PYTHONIOENCODING=UTF-8
|
||||
CACHE=buildcache
|
||||
fi
|
||||
|
||||
#if [ -z $TOTAL ] ; then
|
||||
# export TOTAL=`find . -path '*hi-res (RAW)/*.jpg' | wc -l`
|
||||
#fi
|
||||
if ! [ -z "$COMMON_PREVIEWS" ] && [ -e "./$COMMON_PREVIEWS/preview (RAW)" ] ; then
|
||||
buildcache "./$COMMON_PREVIEWS/preview (RAW)"
|
||||
$CACHE "./$COMMON_PREVIEWS/preview (RAW)"
|
||||
else
|
||||
find . -type d -name 'preview (RAW)' -exec buildcache "{}" \;
|
||||
find . -type d -name 'preview (RAW)' -exec $CACHE "{}" \;
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user