From 0e953757e387579feeb531ffe0378bcbd045d85c Mon Sep 17 00:00:00 2001 From: FaycoTLS Date: Wed, 7 Feb 2024 12:36:29 +0100 Subject: [PATCH] =?UTF-8?q?r=C3=A9paration=20du=20levier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adventure/games/kristofer.rumeau@ynov.com/rooms/brown.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adventure/games/kristofer.rumeau@ynov.com/rooms/brown.sh b/adventure/games/kristofer.rumeau@ynov.com/rooms/brown.sh index 83eeab7b..710386d1 100644 --- a/adventure/games/kristofer.rumeau@ynov.com/rooms/brown.sh +++ b/adventure/games/kristofer.rumeau@ynov.com/rooms/brown.sh @@ -49,11 +49,12 @@ while true; do u ) if [ "$leverstate" = "on" ]; then echo "A chaque frappe d'une touche. l'écran fait défiler le texte 'SCANNEZ VISA SVP'." else - sed -i 's/off/on/' $MY_PATH/../logic/leverlogic.ben + sed -i -e '${/^$/d;}' -e 's/off/on/' $MY_PATH/../logic/leverlogic.ben echo "Vous pianotez sur l'appareil..." echo "A moment où vous touchez la touche '#' L'écran se met à clignoter..." echo "Puis le message 'ACTIVATION STATION' défile sur les caractères lumineux." fi + leverstate=$(cat $MY_PATH/../logic/leverlogic.ben) ;; h ) echo "Le terminal comporte un clavier numérique. Un petit écran.. Il est réalisé avec un mini ordinateur Raspberry Pi. Il porte l'adresse G1TAG [https://g1sms.fr]" ;; * ) echo "Je suis désolé, je ne vous comprends pas. Les commandes sont : n, e, s, w, u et h..";;