[fix] mkdir mess
This commit is contained in:
parent
0352b0d720
commit
75be99058e
@ -49,7 +49,7 @@ for i in $( seq 1 $(( ${#FILELIST[@]} -1 )) ); do
|
|||||||
composite ${FILELIST[$i]} $SYNTH_NAME -gravity center -compose difference "$SYNTH_NAME"
|
composite ${FILELIST[$i]} $SYNTH_NAME -gravity center -compose difference "$SYNTH_NAME"
|
||||||
done
|
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 "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)"
|
echo "${FILELIST[@]}" | tee -a "logs/$(basename $SYNTH_NAME)"
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ for i in $( seq 1 $(( ${#FILELIST[@]} -1 )) ); do
|
|||||||
composite ${FILELIST[$i]} $SYNTH_NAME -gravity center -compose difference "$SYNTH_NAME"
|
composite ${FILELIST[$i]} $SYNTH_NAME -gravity center -compose difference "$SYNTH_NAME"
|
||||||
done
|
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 "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)"
|
echo "${FILELIST[@]}" | tee -a "logs/$(basename $SYNTH_NAME)"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user