mirror of
https://github.com/mborgerson/xemu.git
synced 2025-12-01 16:10:01 +00:00
scripts/xemu-version.sh: Use 0.0.0 if version cannot be detected
This commit is contained in:
committed by
mborgerson
parent
a143f66ce4
commit
fac9ae83c7
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
@ -26,6 +26,10 @@ XEMU_VERSION=$( \
|
||||
cat XEMU_VERSION; \
|
||||
fi)
|
||||
|
||||
if [[ "${XEMU_VERSION}" == "" ]]; then
|
||||
XEMU_VERSION="0.0.0"
|
||||
fi
|
||||
|
||||
get_version_field() {
|
||||
echo ${XEMU_VERSION}-0 | cut -d- -f$1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user