Im Dono ! And i learn bash on linux. im a beginer and i need help for something pretty basic for someone already know bash linux.
I write a simple script and i got a problem.
I'm trying to set a variable that detects when I say "games" to tell me "Good games!" and if I say anything else he replies "Good day!"
However, when I try to set the ca variable doesn't work. I leave you screenshots of what I have as an answer.
Btw I don't know how to copy/paste on linux. (I want to specify that I am on windows with ssh access to a Linux Linode in Ubuntu 22.10 version)
Ps** The script is in French because I am French speaking. I do my best to translate for you, so be indulgent please☺.
#!/bin/sh
name=Dono
user=$(whoami)
date=$(date)
whereamit=$(pwd)
echo "Yio $name, comment tu va?"
sleep 2
echo "Tu es connecter avec l'utilisateur $user."
sleep 1
echo "Nous sommes le $date."
sleep 2
echo "Que veux tu faire maintenant?"
read reponse
sleep 1
if ( reponse = jeux)
then
echo "Bon jeux!"
else
echo "Bonne journée!"
fi