From b4e83604796a51c4439786530676c436cf08a0ef Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Sat, 31 Aug 2019 23:29:36 +0930 Subject: add pipefail so the script does not continue executing on errors - github.com/sr229 --- animegrep.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'animegrep.sh') 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 . +# 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; } -- cgit v1.2.3