diff --git a/contrib/devtools/gen-manpages.sh b/contrib/devtools/gen-manpages.sh index 2329e04a33..be46e54c3e 100755 --- a/contrib/devtools/gen-manpages.sh +++ b/contrib/devtools/gen-manpages.sh @@ -19,7 +19,7 @@ BITCOINQT=${BITCOINQT:-$BINDIR/qt/elements-qt} [ ! -x $BITCOIND ] && echo "$BITCOIND not found or not executable." && exit 1 # The autodetected version git tag can screw up manpage output a little bit -read -r -a BTCVER <<< "$($BITCOINCLI --version | head -n1 | awk -F'[ -]' '{ print $6, $7 }')" +read -r -a BTCVER <<< "$($BITCOINCLI --version | head -n1 | awk -F'[ _-]' '{ print $7, $8 }')" # Create a footer file with copyright content. # This gets autodetected fine for bitcoind if --version-string is not set,