30 lines
547 B
Bash
Executable File
30 lines
547 B
Bash
Executable File
#!/bin/bash
|
|
#xcrypted
|
|
# Modified: 27/03/2020
|
|
# P Anelli"
|
|
# Session 3
|
|
|
|
source ${LIBSH}/libeval.sh
|
|
|
|
#-----------------------------------------
|
|
challenge=C31Q1
|
|
rep=/home/alice/Sequence3
|
|
#-----------------------------------------
|
|
# Debut
|
|
banniere $challenge
|
|
|
|
|
|
# 1
|
|
[ "$HOME" != "/home/alice" ]
|
|
step $(vraifaux $?) "La variable d'environnement a ete modifiee"
|
|
|
|
# 2
|
|
[ "$HOME" = $rep ]
|
|
step $(vraifaux $?) "La variable d'environnement contient le repertoire attendu"
|
|
|
|
#-----------------------------------------
|
|
# Fin
|
|
status "${challenge}_$res"
|
|
exit 0
|
|
|