mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-21 10:12:04 +02:00
build: don't run the versioncheck script if running ./build dependencies
The "dependencies" script are to be run as root. Without this fix, root will create the version/versiondate file and then the rest of the build system will break due to lack of root privilege.
This commit is contained in:
@@ -24,7 +24,6 @@
|
|||||||
set -u -e
|
set -u -e
|
||||||
|
|
||||||
projectname="$(cat projectname)"
|
projectname="$(cat projectname)"
|
||||||
./resources/scripts/misc/versioncheck
|
|
||||||
|
|
||||||
build=./resources/scripts/build
|
build=./resources/scripts/build
|
||||||
|
|
||||||
@@ -68,6 +67,10 @@ fi
|
|||||||
|
|
||||||
mode="${1}"
|
mode="${1}"
|
||||||
|
|
||||||
|
if [ "${mode}" != "dependencies" ]; then
|
||||||
|
./resources/scripts/misc/versioncheck
|
||||||
|
fi
|
||||||
|
|
||||||
[ "${mode}" = help ] && help && exit 0
|
[ "${mode}" = help ] && help && exit 0
|
||||||
|
|
||||||
if [ $# -gt 1 ]; then
|
if [ $# -gt 1 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user