[fix] mkdir mess

This commit is contained in:
alban 2019-10-27 01:21:00 +02:00
parent 0352b0d720
commit 75be99058e
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ for i in $( seq 1 $(( ${#FILELIST[@]} -1 )) ); do
composite ${FILELIST[$i]} $SYNTH_NAME -gravity center -compose difference "$SYNTH_NAME"
done
mkdir -p logs
[ ! -d logs ] && mkdir -p logs
echo "File generated with word $WORD and ${#FILELIST[@]} images: file://$PWD/$SYNTH_NAME" | tee "logs/$(basename $SYNTH_NAME)"
echo "${FILELIST[@]}" | tee -a "logs/$(basename $SYNTH_NAME)"

View File

@ -49,7 +49,7 @@ for i in $( seq 1 $(( ${#FILELIST[@]} -1 )) ); do
composite ${FILELIST[$i]} $SYNTH_NAME -gravity center -compose difference "$SYNTH_NAME"
done
mkdir logs
mkdir -p logs
echo "File generated with word $WORD and ${#FILELIST[@]} images: file://$PWD/$SYNTH_NAME" | tee "logs/$(basename $SYNTH_NAME)"
echo "${FILELIST[@]}" | tee -a "logs/$(basename $SYNTH_NAME)"