Task: Exit a Shell Script Upon Encountering an Error
Task: Exit a Shell Script Upon Encountering an Error: a task in Terminal-Lego-15k (Harbor dataset). You need to modify a shell script so that it properly exits when an error occurs. The script contains an if statement that checks the result of a command, and you need to ensure that when the…
The task
You need to modify a shell script so that it properly exits when an error occurs. The script contains an `if` statement that checks the result of a command, and you need to ensure that when the command fails, the script displays an error message and then terminates execution immediately (rather than continuing to run…
Part of PrimeIntellect/Terminal-Lego-15k.