mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
init.sh: error if version not read
we no longer rely on the .git version being read by child instances, so we MUST ensure that it is being read. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+2
-2
@@ -52,8 +52,8 @@ xbmkpkg()
|
||||
|
||||
xbmk_get_version()
|
||||
{
|
||||
[ ! -f ".version" ] || read -r version < ".version" || :; :
|
||||
[ ! -f ".versiondate" ] || read -r versiondate < ".versiondate" || :; :
|
||||
[ ! -f ".version" ] || read -r version < ".version" || err
|
||||
[ ! -f ".versiondate" ] || read -r versiondate < ".versiondate" || err
|
||||
|
||||
[ ! -e ".git" ] && [ ! -f ".version" ] && version="unknown"
|
||||
[ ! -e ".git" ] && [ ! -f ".versiondate" ] && versiondate="1716415872"
|
||||
|
||||
Reference in New Issue
Block a user