forked from fanch-le-colporteur/G1BILLET
SI STYLE=1 ALORS crée un seul billet
This commit is contained in:
parent
15ac63d31c
commit
58fe90ca40
|
@ -15,15 +15,19 @@ MONTANT="$1"
|
||||||
UNIQID="$2"
|
UNIQID="$2"
|
||||||
STYLE="$3"
|
STYLE="$3"
|
||||||
|
|
||||||
|
NBbillets=6
|
||||||
|
|
||||||
|
|
||||||
[[ $MONTANT == "" ]] && MONTANT="___"
|
[[ $MONTANT == "" ]] && MONTANT="___"
|
||||||
[[ $UNIQID == "" ]] && UNIQID=$(date -u +%s%N | cut -b1-13)$RANDOM
|
[[ $UNIQID == "" ]] && UNIQID=$(date -u +%s%N | cut -b1-13)$RANDOM
|
||||||
|
[[ "$STYLE" == "1" ]] && NBbillets=1 && STYLE="" ## SEULEMENT 1 BILLET
|
||||||
|
|
||||||
# CHECK IF $STYLE IMAGES EXIST
|
# CHECK IF $STYLE IMAGES EXIST
|
||||||
[[ ! -f ${MY_PATH}/images/fond${STYLE}.jpg ]] && exit 1
|
[[ ! -f ${MY_PATH}/images/fond${STYLE}.jpg ]] && exit 1
|
||||||
[[ ! -f ${MY_PATH}/images/g1${STYLE}.png ]] && exit 1
|
[[ ! -f ${MY_PATH}/images/g1${STYLE}.png ]] && exit 1
|
||||||
[[ ! -f ${MY_PATH}/images/logo${STYLE}.png ]] && exit 1
|
[[ ! -f ${MY_PATH}/images/logo${STYLE}.png ]] && exit 1
|
||||||
|
|
||||||
# CREATION DE 6 BILLETS DE $MONTANT DU
|
# CREATION DE $NBbillets BILLETS DE $MONTANT DU
|
||||||
NBbillets=6
|
|
||||||
boucle=0;
|
boucle=0;
|
||||||
while [ $boucle -lt $NBbillets ]
|
while [ $boucle -lt $NBbillets ]
|
||||||
do
|
do
|
||||||
|
|
Loading…
Reference in New Issue