how to exit a script
Asked by
Brad Ganson
#!/bin/bash
cat /proc/asound/
echo
echo -e "If version = 1.0.23 then press y to end this installation:\c"
read word
if [$word=y] then
echo "will exit now."
exit
fi
echo "not an exit."
exit
why doesn't exit work to end the script????
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu bash Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Brad Ganson
- Solved:
- Last query:
- Last reply:
This question was reopened
- by Brad Ganson
To post a message you must log in.