Concept Flow - set -e for exit on error
Start Script
Run Command 1
Command 1 Success?
No→Exit Script Immediately
Yes
Run Command 2
Command 2 Success?
No→Exit Script Immediately
Yes
Continue Running Commands
End Script
The script runs commands one by one. If any command fails, the script stops immediately.