summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xanimegrep.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/animegrep.sh b/animegrep.sh
index c57373a..624815b 100755
--- a/animegrep.sh
+++ b/animegrep.sh
@@ -14,6 +14,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# Make sure the script fails if the other commands fail as well
+set -eo pipefail
+
# check for mkvextract
command -v mkvextract >/dev/null 2>&1 || { echo >&2 "Requires mkvextract. Aborting."; exit; }