diff --git a/lib/system b/lib/system
index b8e5f3176bafa342fc7580eeb5fd9814feb2cd8c..485bae89d5e1f2f7fe177fb9ca008efdbe185b45 100755
--- a/lib/system
+++ b/lib/system
@@ -5,6 +5,7 @@ set -o pipefail         # emits error if a command in a pipe chain fails
 shopt -s expand_aliases # allows the use of aliases in scripts
 shopt -s extglob        # enables extended globbing, eg "@(aa|bb)"
 shopt -s globstar       # expands `**` to any file/dir
+shopt -s inherit_errexit
 
 ## @fn system_load_outro()
 ## @brief Loads the outro script