Fix linux version option format check

Closes: #144 [via git-merge-pr]
This commit is contained in:
madjack 2020-08-16 18:48:44 +03:00 committed by Michael Aldridge
parent c8cb9a264e
commit 68a35230cc
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ XBPS_ARCH=$ARCH $XBPS_INSTALL_CMD -r "$VOIDHOSTDIR" ${XBPS_REPOSITORY} -S
# Get linux version for ISO
# If linux version option specified use
if [ -n "$LINUX_VERSION" ]; then
if ! echo "$LINUX_VERSION" | grep "linux[0-9._]*"; then
if ! echo "$LINUX_VERSION" | grep "linux[0-9._]\+"; then
die "-v option must be in format linux<version>"
fi