29 lines
544 B
Bash
29 lines
544 B
Bash
#!/bin/bash
|
|
# Modified: 27/03/2020
|
|
# P Anelli"
|
|
# Session 3
|
|
|
|
source ${LIBSH}/libeval.sh
|
|
|
|
#-----------------------------------------
|
|
challenge=C31Q3
|
|
rep=/home/alice/Sequence3/imdb
|
|
#-----------------------------------------
|
|
# Debut
|
|
banniere $challenge
|
|
|
|
# 1
|
|
[ $(env | grep -q "REVUE" ]
|
|
step $(vraifaux $?) "La variable existe" true
|
|
|
|
#2
|
|
[ "$REVUE" == $rep ]
|
|
step $(vraifaux $?) "Le contenu de la variable est correct "
|
|
|
|
#-----------------------------------------
|
|
# Fin
|
|
status "${challenge}_$res"
|
|
exit 0
|
|
|
|
# listcode = [ '000', '336', '4d4' ]
|