Skip to content

Commit

Permalink
fix(utilities): Check if the bash version is 4+ (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
Moep90 authored Dec 8, 2024
1 parent 07a55d6 commit 77b680a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Utilities/crd-extractor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ if ! command -v kubectl &> /dev/null; then
printf "please visit https://kubernetes.io/docs/tasks/tools/#kubectl to install it"
exit 1
fi
# Check if the major version is 4 or higher
if [[ ! ${BASH_VERSION%%.*} -ge 4 ]]; then
printf "Bash version is lower than 4"
printf "please visit https://www.gnu.org/software/bash/ to install it"
exit 1
fi

# Check if the pyyaml module is installed
if ! echo 'import yaml' | python3 &> /dev/null; then
Expand Down

0 comments on commit 77b680a

Please sign in to comment.