Skip to content

Commit ad402fc

Browse files
authored
feat: check if yq is installed in golden buddy (#662)
1 parent ad5d667 commit ad402fc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

golden_buddy.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ GREEN='\033[0;32m'
8383
YELLOW='\033[0;33m'
8484
NC='\033[0m'
8585

86+
if ! command -v yq &> /dev/null; then
87+
echo -e "${RED}Error: 'yq' command not found. Please install yq to continue.${NC}" >&2
88+
exit 1
89+
fi
90+
8691
if [[ "$MODE" != "update" && "$MODE" != "verify" ]]; then
8792
echo "Error: Unsupported mode '$MODE'. Must be 'update' or 'verify'." >&2
8893
exit 1

0 commit comments

Comments
 (0)