Commit 9d7aec27 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Be pedantic about which field we read from ./configure --version

parent f100691c
......@@ -28,7 +28,7 @@ tar xf "$SOURCE"
DIST_DIR=$(ls)
VERSION=$("$DIST_DIR"/configure --version | awk 'NR == 1 {print $3}')
VERSION=$("$DIST_DIR"/configure --version | awk 'NR == 1 {print $NF}')
MAJOR=${VERSION%.*}
MINOR=${VERSION##*.}
MINOR=${MINOR%%-*}
......
......@@ -20,7 +20,7 @@ tar xf "$SOURCE"
DIST_DIR=$(ls)
VERSION=$("$DIST_DIR"/configure --version | awk 'NR == 1 {print $3}')
VERSION=$("$DIST_DIR"/configure --version | awk 'NR == 1 {print $NF}')
MAJOR=${VERSION%.*}
MINOR=${VERSION##*.}
MINOR=${MINOR%%-*}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment