Skip to content

Commit 0f58e58

Browse files
authored
gracefully fail on which check (#211)
1 parent d7dff49 commit 0f58e58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/dependencies_check.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function check_dependencies() {
1010
YQ_BIN=$LOCAL_YQ
1111
else
1212
# Check if yq is installed
13-
YQ_BIN=$(which yq 2>/dev/null)
13+
YQ_BIN=$(which yq 2>/dev/null || true)
1414
fi
1515
if [ -z "$YQ_BIN" ]; then
1616
echo "Error: 'yq' is not installed or not in PATH."
@@ -80,4 +80,4 @@ function install_yq() {
8080

8181
echo "Error: Unable to install 'yq' for any of the supported architectures."
8282
exit 1
83-
}
83+
}

0 commit comments

Comments
 (0)