From 0eb7525e25b3bac63ec9876ea4fa0143d5b19af8 Mon Sep 17 00:00:00 2001 From: Michael de Gans <47511965+mdegans@users.noreply.github.com> Date: Tue, 30 Apr 2019 20:51:52 -0700 Subject: [PATCH] Stop script on error This change ensures that if one step in the script fails, the script exits rather than continues with potentially undesirable results. --- script/install_opencv4.0.0_Nano.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/install_opencv4.0.0_Nano.sh b/script/install_opencv4.0.0_Nano.sh index 5d176832..c9ee50a2 100755 --- a/script/install_opencv4.0.0_Nano.sh +++ b/script/install_opencv4.0.0_Nano.sh @@ -9,6 +9,8 @@ # license agreement from NVIDIA Corporation is strictly prohibited. # +set -e + if [ "$#" -ne 1 ]; then echo "Usage: $0 " exit