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