CHECK IF $STYLE IMAGES EXIST

This commit is contained in:
qo-op 2021-01-26 23:05:18 +01:00
parent 537ed59f63
commit 15ac63d31c
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,10 @@ STYLE="$3"
[[ $MONTANT == "" ]] && MONTANT="___"
[[ $UNIQID == "" ]] && UNIQID=$(date -u +%s%N | cut -b1-13)$RANDOM
# CHECK IF $STYLE IMAGES EXIST
[[ ! -f ${MY_PATH}/images/fond${STYLE}.jpg ]] && exit 1
[[ ! -f ${MY_PATH}/images/g1${STYLE}.png ]] && exit 1
[[ ! -f ${MY_PATH}/images/logo${STYLE}.png ]] && exit 1
# CREATION DE 6 BILLETS DE $MONTANT DU
NBbillets=6