From 9993a9b98336691b4f15b2b36d1bb6c043436ecb Mon Sep 17 00:00:00 2001 From: Erik Perri <46399654+erik-perri@users.noreply.github.com> Date: Mon, 4 Nov 2024 13:04:39 -0500 Subject: [PATCH] update: exit on subcommand failure (#59) --- bin/hop | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/hop b/bin/hop index 4d9e59d..ee33581 100755 --- a/bin/hop +++ b/bin/hop @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -eo pipefail + HOP_PATH=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd) TOOLKIT_PATH=$(dirname "$HOP_PATH")