sed -i='' bug was here
This commit is contained in:
parent
5df64847ea
commit
eb30e49b70
|
@ -46,7 +46,7 @@ while true; do
|
|||
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/' ../logic/leverlogic.ben
|
||||
sed -i 's/off/on/' ../logic/leverlogic.ben
|
||||
echo "Vous pianotez sur l'appareil..."
|
||||
sleep 3
|
||||
echo "A moment où vous touchez la touche '#' L'écran se met à clignoter..."
|
||||
|
|
|
@ -5,7 +5,7 @@ clear
|
|||
# Use (over-use) of 'sleep' is for dramatic effect - play around with it, see how it reads.
|
||||
|
||||
# Let's reset the lever, now that we're done with it.
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
|
||||
# Initialise the Title Art
|
||||
file1="../art/titleart.ben"
|
||||
|
|
|
@ -36,7 +36,7 @@ while true; do
|
|||
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/' ../logic/stationlogic.ben
|
||||
sed -i 's/off/on/' ../logic/stationlogic.ben
|
||||
echo "Vous appuyez sur l'interupteur de l'écran. Y apparaît alors :"
|
||||
sleep 3
|
||||
echo "AMBASSADE MadeInZion - TerraPi4 - 2 To -"
|
||||
|
|
|
@ -6,7 +6,7 @@ clear
|
|||
# You can add more logic files by simply adding a 'sed' command and appropriate .ben file.
|
||||
# First off, let us reset the game logic. Use this as an example.
|
||||
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
|
||||
# Who doen't love ASCII text, right?
|
||||
# Next up, let's initialise the Title Art
|
||||
|
|
|
@ -46,7 +46,7 @@ while true; do
|
|||
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/' ../logic/leverlogic.ben
|
||||
sed -i 's/off/on/' ../logic/leverlogic.ben
|
||||
echo "Vous pianotez sur l'appareil..."
|
||||
sleep 3
|
||||
echo "A moment où vous touchez la touche '#' L'écran se met à clignoter..."
|
||||
|
|
|
@ -5,8 +5,8 @@ clear
|
|||
# Use (over-use) of 'sleep' is for dramatic effect - play around with it, see how it reads.
|
||||
|
||||
# Let's reset the lever, now that we're done with it.
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic2.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic2.ben
|
||||
|
||||
# Initialise the Title Art
|
||||
file1="../art/titleart.ben"
|
||||
|
|
|
@ -36,7 +36,7 @@ while true; do
|
|||
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/' ../logic/stationlogic.ben
|
||||
sed -i 's/off/on/' ../logic/stationlogic.ben
|
||||
echo "Vous appuyez sur l'interupteur de l'écran. Y apparaît alors :"
|
||||
sleep 3
|
||||
echo "AMBASSADE MadeInZion - TerraPi4 - 2 To -"
|
||||
|
|
|
@ -6,8 +6,8 @@ clear
|
|||
# You can add more logic files by simply adding a 'sed' command and appropriate .ben file.
|
||||
# First off, let us reset the game logic. Use this as an example.
|
||||
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic2.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic2.ben
|
||||
|
||||
# Who doesn't love ASCII text, right?
|
||||
# Next up, let's initialise the Title Art
|
||||
|
|
|
@ -46,7 +46,7 @@ while true; do
|
|||
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/' ../logic/leverlogic.ben
|
||||
sed -i 's/off/on/' ../logic/leverlogic.ben
|
||||
echo "Vous pianotez sur l'appareil..."
|
||||
sleep 3
|
||||
echo "A moment où vous touchez la touche '#' L'écran se met à clignoter..."
|
||||
|
|
|
@ -5,7 +5,7 @@ clear
|
|||
# Use (over-use) of 'sleep' is for dramatic effect - play around with it, see how it reads.
|
||||
|
||||
# Let's reset the lever, now that we're done with it.
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
|
||||
# Initialise the Title Art
|
||||
file1="../art/titleart.ben"
|
||||
|
|
|
@ -36,7 +36,7 @@ while true; do
|
|||
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/' ../logic/stationlogic.ben
|
||||
sed -i 's/off/on/' ../logic/stationlogic.ben
|
||||
echo "Vous appuyez sur l'interupteur de l'écran. Y apparaît alors :"
|
||||
sleep 3
|
||||
echo "AMBASSADE MadeInZion - TerraPi4 - 2 To -"
|
||||
|
|
|
@ -6,7 +6,7 @@ clear
|
|||
# You can add more logic files by simply adding a 'sed' command and appropriate .ben file.
|
||||
# First off, let us reset the game logic. Use this as an example.
|
||||
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
|
||||
# Who doesn't love ASCII text, right?
|
||||
# Next up, let's initialise the Title Art
|
||||
|
|
|
@ -31,7 +31,7 @@ while true; do
|
|||
if [ "$leverstate" = "on" ]; then
|
||||
echo "le boitier s'est éteint après vous avoir montré son message"
|
||||
else
|
||||
sed -i='' 's/off/on/' ../logic/leverlogic.ben
|
||||
sed -i 's/off/on/' ../logic/leverlogic.ben
|
||||
echo "vous appuyez sur le bouton rouge"
|
||||
sleep 3
|
||||
echo "vous entendez au loin un grincement au fond de la forêt."
|
||||
|
|
|
@ -5,7 +5,7 @@ clear
|
|||
# Use (over-use) of 'sleep' is for dramatic effect - play around with it, see how it reads.
|
||||
|
||||
# Let's reset the lever, now that we're done with it.
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
|
||||
# Initialise the Title Art
|
||||
file1="../art/titleart.ben"
|
||||
|
|
|
@ -36,7 +36,7 @@ while true; do
|
|||
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/' ../logic/stationlogic.ben
|
||||
sed -i 's/off/on/' ../logic/stationlogic.ben
|
||||
echo "Vous appuyez sur l'interupteur de l'écran. Y apparaît alors :"
|
||||
sleep 3
|
||||
echo "AMBASSADE MadeInZion - TerraPi4 - 2 To -"
|
||||
|
|
|
@ -6,7 +6,7 @@ clear
|
|||
# You can add more logic files by simply adding a 'sed' command and appropriate .ben file.
|
||||
# First off, let us reset the game logic. Use this as an example.
|
||||
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
|
||||
# Who doen't love ASCII text, right?
|
||||
# Next up, let's initialise the Title Art
|
||||
|
|
|
@ -46,7 +46,7 @@ while true; do
|
|||
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/' ../logic/leverlogic.ben
|
||||
sed -i 's/off/on/' ../logic/leverlogic.ben
|
||||
echo "Vous pianotez sur l'appareil..."
|
||||
sleep 3
|
||||
echo "A moment où vous touchez la touche '#' L'écran se met à clignoter..."
|
||||
|
|
|
@ -5,8 +5,8 @@ clear
|
|||
# Use (over-use) of 'sleep' is for dramatic effect - play around with it, see how it reads.
|
||||
|
||||
# Let's reset the lever, now that we're done with it.
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic2.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic2.ben
|
||||
|
||||
# Initialise the Title Art
|
||||
file1="../art/titleart.ben"
|
||||
|
|
|
@ -36,7 +36,7 @@ while true; do
|
|||
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/' ../logic/stationlogic.ben
|
||||
sed -i 's/off/on/' ../logic/stationlogic.ben
|
||||
echo "Vous appuyez sur l'interupteur de l'écran. Y apparaît alors :"
|
||||
sleep 3
|
||||
echo "AMBASSADE MadeInZion - TerraPi4 - 2 To -"
|
||||
|
|
|
@ -53,7 +53,7 @@ while true; do
|
|||
if [ "$leverstate2" = "on" ]; then
|
||||
echo "La vitre est ouverte, vous avez récupéré le marteau."
|
||||
else
|
||||
sed -i='' 's/off/on/' ../logic/leverlogic2.ben
|
||||
sed -i 's/off/on/' ../logic/leverlogic2.ben
|
||||
echo "Vous tirez sur le levier, celui-ci bloque un peu.."
|
||||
sleep 3
|
||||
echo "Après avoir forcé, le levier s'est abaissé."
|
||||
|
|
|
@ -6,8 +6,8 @@ clear
|
|||
# You can add more logic files by simply adding a 'sed' command and appropriate .ben file.
|
||||
# First off, let us reset the game logic. Use this as an example.
|
||||
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic2.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic2.ben
|
||||
|
||||
# Who doen't love ASCII text, right?
|
||||
# Next up, let's initialise the Title Art
|
||||
|
|
|
@ -46,7 +46,7 @@ while true; do
|
|||
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/' ../logic/leverlogic.ben
|
||||
sed -i 's/off/on/' ../logic/leverlogic.ben
|
||||
echo "Vous pianotez sur l'appareil..."
|
||||
sleep 2
|
||||
echo "A moment où vous touchez la touche '#' L'écran se met à clignoter..."
|
||||
|
|
|
@ -5,7 +5,7 @@ clear
|
|||
# Use (over-use) of 'sleep' is for dramatic effect - play around with it, see how it reads.
|
||||
|
||||
# Let's reset the lever, now that we're done with it.
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
|
||||
# Initialise the Title Art
|
||||
file1="../art/titleart.ben"
|
||||
|
|
|
@ -36,7 +36,7 @@ while true; do
|
|||
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/' ../logic/stationlogic.ben
|
||||
sed -i 's/off/on/' ../logic/stationlogic.ben
|
||||
echo "Vous appuyez sur l'interupteur de l'écran. Y apparaît alors :"
|
||||
sleep 3
|
||||
echo "AMBASSADE MadeInZion - TerraPi4 - 2 To -"
|
||||
|
|
|
@ -6,7 +6,7 @@ clear
|
|||
# You can add more logic files by simply adding a 'sed' command and appropriate .ben file.
|
||||
# First off, let us reset the game logic. Use this as an example.
|
||||
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
|
||||
# Who doen't love ASCII text, right?
|
||||
# Next up, let's initialise the Title Art
|
||||
|
|
|
@ -46,7 +46,7 @@ while true; do
|
|||
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/' ../logic/leverlogic.ben
|
||||
sed -i 's/off/on/' ../logic/leverlogic.ben
|
||||
echo "Vous pianotez sur l'appareil..."
|
||||
sleep 3
|
||||
echo "A moment où vous touchez la touche '#' L'écran se met à clignoter..."
|
||||
|
|
|
@ -5,7 +5,7 @@ clear
|
|||
# Use (over-use) of 'sleep' is for dramatic effect - play around with it, see how it reads.
|
||||
|
||||
# Let's reset the lever, now that we're done with it.
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
|
||||
# Initialise the Title Art
|
||||
file1="../art/titleart.ben"
|
||||
|
|
|
@ -36,7 +36,7 @@ while true; do
|
|||
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/' ../logic/stationlogic.ben
|
||||
sed -i 's/off/on/' ../logic/stationlogic.ben
|
||||
echo "Vous appuyez sur l'interupteur de l'écran. Y apparaît alors :"
|
||||
sleep 3
|
||||
echo "AMBASSADE MadeInZion - TerraPi4 - 2 To -"
|
||||
|
|
|
@ -6,7 +6,7 @@ clear
|
|||
# You can add more logic files by simply adding a 'sed' command and appropriate .ben file.
|
||||
# First off, let us reset the game logic. Use this as an example.
|
||||
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
|
||||
# Who doen't love ASCII text, right?
|
||||
# Next up, let's initialise the Title Art
|
||||
|
|
|
@ -35,15 +35,15 @@ Les fichiers ./rooms/start.sh et ../_votre jeu/rooms/start.sh sont différents
|
|||
./rooms/orange.sh:leverstatetwo=`cat ../logic/leverlogictwo.ben`
|
||||
./rooms/purple.sh:levertwostate=`cat ../logic/leverlogictwo.ben`
|
||||
./rooms/purple.sh: u ) levertwostate=`cat ../logic/leverlogictwo.ben`
|
||||
./rooms/purple.sh: sed -i='' 's/off/on/' ../logic/leverlogictwo.ben
|
||||
./rooms/start.sh:sed -i='' 's/on/off/' ../logic/leverlogictwo.ben
|
||||
./rooms/end.sh:sed -i='' 's/on/off/' ../logic/leverlogictwo.ben
|
||||
./rooms/purple.sh: sed -i 's/off/on/' ../logic/leverlogictwo.ben
|
||||
./rooms/start.sh:sed -i 's/on/off/' ../logic/leverlogictwo.ben
|
||||
./rooms/end.sh:sed -i 's/on/off/' ../logic/leverlogictwo.ben
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
|
||||
```
|
||||
# no sed bug correction
|
||||
sed -i='' 's/on/off/' ../logic/leverlogictwo.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogictwo.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogictwo.ben
|
||||
|
||||
```
|
||||
|
|
|
@ -47,7 +47,7 @@ while true; do
|
|||
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/' ../logic/leverlogic.ben
|
||||
sed -i 's/off/on/' ../logic/leverlogic.ben
|
||||
echo "Vous pianotez sur l'appareil..."
|
||||
sleep 3
|
||||
echo "A moment où vous touchez la touche '#' L'écran se met à clignoter..."
|
||||
|
|
|
@ -5,8 +5,8 @@ clear
|
|||
# Use (over-use) of 'sleep' is for dramatic effect - play around with it, see how it reads.
|
||||
|
||||
# Let's reset the lever, now that we're done with it.
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i='' 's/on/off/' ../logic/leverlogictwo.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogictwo.ben
|
||||
|
||||
# Initialise the Title Art
|
||||
file1="../art/titleart.ben"
|
||||
|
|
|
@ -36,7 +36,7 @@ while true; do
|
|||
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/' ../logic/stationlogic.ben
|
||||
sed -i 's/off/on/' ../logic/stationlogic.ben
|
||||
echo "Vous appuyez sur l'interupteur de l'écran. Y apparaît alors :"
|
||||
sleep 3
|
||||
echo "AMBASSADE MadeInZion - TerraPi4 - 2 To -"
|
||||
|
|
|
@ -40,7 +40,7 @@ while true; do
|
|||
if [ "$levertwostate" = "on" ]; then
|
||||
echo "Le levier est déjà en position ON, impossible de l'abbaisser maintenant..."
|
||||
else
|
||||
sed -i='' 's/off/on/' ../logic/leverlogictwo.ben
|
||||
sed -i 's/off/on/' ../logic/leverlogictwo.ben
|
||||
echo "Vous relevez le levier en position ON en forcant un peu."
|
||||
echo "Vous entendez un bruit de mécanisme qui se déclenche à l'est."
|
||||
fi
|
||||
|
|
|
@ -6,8 +6,8 @@ clear
|
|||
# You can add more logic files by simply adding a 'sed' command and appropriate .ben file.
|
||||
# First off, let us reset the game logic. Use this as an example.
|
||||
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i='' 's/on/off/' ../logic/leverlogictwo.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogictwo.ben
|
||||
|
||||
# Who doen't love ASCII text, right?
|
||||
# Next up, let's initialise the Title Art
|
||||
|
|
|
@ -46,7 +46,7 @@ while true; do
|
|||
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/' ../logic/leverlogic.ben
|
||||
sed -i 's/off/on/' ../logic/leverlogic.ben
|
||||
echo "Vous pianotez sur l'appareil..."
|
||||
sleep 3
|
||||
echo "A moment où vous touchez la touche '#' L'écran se met à clignoter..."
|
||||
|
|
|
@ -5,7 +5,7 @@ clear
|
|||
# Use (over-use) of 'sleep' is for dramatic effect - play around with it, see how it reads.
|
||||
|
||||
# Let's reset the lever, now that we're done with it.
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
|
||||
# Initialise the Title Art
|
||||
file1="../art/titleart.ben"
|
||||
|
|
|
@ -36,7 +36,7 @@ while true; do
|
|||
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/' ../logic/stationlogic.ben
|
||||
sed -i 's/off/on/' ../logic/stationlogic.ben
|
||||
echo "Vous appuyez sur l'interupteur de l'écran. Y apparaît alors :"
|
||||
sleep 3
|
||||
echo "AMBASSADE MadeInZion - TerraPi4 - 2 To -"
|
||||
|
|
|
@ -6,7 +6,7 @@ clear
|
|||
# You can add more logic files by simply adding a 'sed' command and appropriate .ben file.
|
||||
# First off, let us reset the game logic. Use this as an example.
|
||||
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
|
||||
# Who doen't love ASCII text, right?
|
||||
# Next up, let's initialise the Title Art
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
off
|
|
@ -1 +0,0 @@
|
|||
off
|
|
@ -46,7 +46,7 @@ while true; do
|
|||
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/' ../logic/leverlogic.ben
|
||||
sed -i 's/off/on/' ../logic/leverlogic.ben
|
||||
echo "Vous pianotez sur l'appareil..."
|
||||
sleep 3
|
||||
echo "A moment où vous touchez la touche '#' L'écran se met à clignoter..."
|
||||
|
|
|
@ -5,8 +5,8 @@ clear
|
|||
# Use (over-use) of 'sleep' is for dramatic effect - play around with it, see how it reads.
|
||||
|
||||
# Let's reset the lever, now that we're done with it.
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic2.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic2.ben
|
||||
|
||||
# Initialise the Title Art
|
||||
file1="../art/titleart.ben"
|
||||
|
|
|
@ -36,7 +36,7 @@ while true; do
|
|||
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/' ../logic/stationlogic.ben
|
||||
sed -i 's/off/on/' ../logic/stationlogic.ben
|
||||
echo "Vous appuyez sur l'interupteur de l'écran. Y apparaît alors :"
|
||||
sleep 3
|
||||
echo "AMBASSADE MadeInZion - TerraPi4 - 2 To -"
|
||||
|
|
|
@ -53,7 +53,7 @@ while true; do
|
|||
if [ "$leverstate2" = "on" ]; then
|
||||
echo "La vitre est ouverte, vous avez récupéré le marteau."
|
||||
else
|
||||
sed -i='' 's/off/on/' ../logic/leverlogic2.ben
|
||||
sed -i 's/off/on/' ../logic/leverlogic2.ben
|
||||
echo "Vous tirez sur le levier, celui-ci bloque un peu.."
|
||||
sleep 3
|
||||
echo "Après avoir forcé, le levier s'est abaissé."
|
||||
|
|
|
@ -6,8 +6,8 @@ clear
|
|||
# You can add more logic files by simply adding a 'sed' command and appropriate .ben file.
|
||||
# First off, let us reset the game logic. Use this as an example.
|
||||
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i='' 's/on/off/' ../logic/leverlogic2.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic.ben
|
||||
sed -i 's/on/off/' ../logic/leverlogic2.ben
|
||||
|
||||
# Who doesn't love ASCII text, right?
|
||||
# Next up, let's initialise the Title Art
|
||||
|
|
|
@ -68,7 +68,7 @@ done
|
|||
echo "#############################################"
|
||||
echo "######### FUN INSTALL ASCII ART TOOLS ######"
|
||||
echo "#############################################"
|
||||
for i in cmatrix cowsay; do
|
||||
for i in cmatrix cowsay fonts-hack-ttf; do
|
||||
if [ $(dpkg-query -W -f='${Status}' $i 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
|
||||
echo ">>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Installation $i <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
|
||||
sudo apt install -y $i
|
||||
|
|
Loading…
Reference in New Issue