35 lines
665 B
Bash
Executable File
35 lines
665 B
Bash
Executable File
#!/bin/bash
|
|
#xcrypted
|
|
# Created: 27/03/2020
|
|
# P Anelli"
|
|
# Session 3
|
|
|
|
source ${LIBSH}/libeval.sh
|
|
|
|
#-----------------------------------------
|
|
challenge=C13Q5
|
|
rep=~/Sequence1/A13/LettresBob
|
|
fichier=declaration.txt
|
|
rep2=~/Sequence1/A13/LettresTrudy
|
|
fichier2=revelation.txt
|
|
#-----------------------------------------
|
|
# Debut
|
|
banniere $challenge
|
|
|
|
# 1
|
|
[ $(pwd) == "$rep2" ]
|
|
step $(vraifaux $?) "Le repertoire courant est $rep2"
|
|
|
|
# 2
|
|
[ -e $rep/$fichier ]
|
|
step $(vraifaux $?) "Le fichier $fichier existe dans $rep"
|
|
|
|
# 3
|
|
[ -e $fichier2 ]
|
|
step $(vraifaux $?) "Le fichier $fichier2 existe"
|
|
|
|
#-----------------------------------------
|
|
# Fin
|
|
status "${challenge}_$res"
|
|
exit 0
|