summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2021-05-19 17:58:36 +0100
committerLeah Rowe <leah@libreboot.org>2021-05-19 17:58:36 +0100
commit5573dcd1030f976b05c491355e60f8e26e0b2321 (patch)
treedc359e1de0443bef6efe5e5b5ae1eb385bf99e72
parentce0013aebf7c7fce442906232f8dc5299732e470 (diff)
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.
-rwxr-xr-xbuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/build b/build
index 8cf7835d..29f78a43 100755
--- a/build
+++ b/build
@@ -24,7 +24,6 @@
set -u -e
projectname="$(cat projectname)"
-./resources/scripts/misc/versioncheck
build=./resources/scripts/build
@@ -68,6 +67,10 @@ fi
mode="${1}"
+if [ "${mode}" != "dependencies" ]; then
+ ./resources/scripts/misc/versioncheck
+fi
+
[ "${mode}" = help ] && help && exit 0
if [ $# -gt 1 ]; then