From 6fa213550db28af93dca15b70eb4210375faca7f Mon Sep 17 00:00:00 2001 From: anaxios Date: Wed, 7 Aug 2024 04:40:22 -0700 Subject: [PATCH] Add pipefail option to set command to prevent pipes from hiding errors, improve script reliability --- aicommit_groq | 1 + 1 file changed, 1 insertion(+) diff --git a/aicommit_groq b/aicommit_groq index f477e68..5ba92bd 100755 --- a/aicommit_groq +++ b/aicommit_groq @@ -1,6 +1,7 @@ #!/bin/bash set -e +set -o pipefail ARGS=("${@-}") TMP_FILE="/tmp/aicommit"