Add pipefail option to set command to prevent pipes from hiding errors, improve script reliability

This commit is contained in:
ilguappo 2024-08-07 04:40:22 -07:00
parent e0ee195fca
commit 6fa213550d

View File

@ -1,6 +1,7 @@
#!/bin/bash
set -e
set -o pipefail
ARGS=("${@-}")
TMP_FILE="/tmp/aicommit"