Hello, it's me again.
I want to make a .sh file, which when you open it will appear: ''do you want to shut down the computer Y/N'' and if you put Y, exitcheck.sh would run and shut down the computer and if you put N, the script would closed down.
I found a "template" of this program (because I use linux for a short time and don't know all the commands), but it threw an error. Can anyone help me?
read a
if [[ $a == "N" || $a == "n" ]]; then
echo "not gonna do it"
else
echo "gonna do it"
fi