make version regex posix compliant so that it works on mac

Signed-off-by: Arne Rutjes <arne123@gmail.com>
This commit is contained in:
Arne Rutjes 2024-12-16 20:23:27 +01:00 committed by Dave Enyeart
parent 8538e32437
commit 5e0e5a1550

View file

@ -43,7 +43,7 @@ function check_prereqs() {
fi
# Define the sed expression to extract the version number
VERSION_SED_EXPR='s/^ Version: v\?\(.*\)$/\1/p'
VERSION_SED_EXPR='s/^ Version: v\{0,1\}\(.*\)$/\1/p'
# Use the fabric peer and ca containers to check fabric image versions
# NOTE: About extracting the version number: