Skip to content

Commit

Permalink
refactor(solr): add bash v4+ requirement for update-fields.sh IQSS#7903
Browse files Browse the repository at this point in the history
  • Loading branch information
poikilotherm committed Oct 5, 2021
1 parent bfb8243 commit 84aa193
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions conf/solr/8.8.1/update-fields.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ while getopts ":hp" opt; do
esac
done

# Check for recent Bash version
# shellcheck disable=SC2086
if [ ${BASH_VERSION%%.*} -lt 4 ]; then
error "Bash v4.x or later required"
fi

# remove all the parsed options
shift $((OPTIND-1))

Expand Down

0 comments on commit 84aa193

Please sign in to comment.