From f65a4b5779f8b0c1ba28d236d512332036de80fb Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 10 Aug 2023 12:48:43 +0200 Subject: [nvidia-libs] Fix expression --- core/modules/nvidia-libs/module.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/modules/nvidia-libs/module.build b/core/modules/nvidia-libs/module.build index 5dcbc68b..3d56fc20 100644 --- a/core/modules/nvidia-libs/module.build +++ b/core/modules/nvidia-libs/module.build @@ -5,7 +5,7 @@ pre_exec() { local SRC SZ SRC="${ROOT_DIR}/tmp/work/nvidia-common/build/$VERSION" [ -d "$SRC" ] || perror "nvidia-common did not build $VERSION" - SZ=$( du -sk "$SRC" ) + SZ=$( du -sk "$SRC" | awk '{print $1}' ) (( SZ < 200000 )) && perror "nvidia-common for $VERSION is less than 200MB, fishy" # XXX Now we override the MODULE_BUILD_DIR, where mltk will then grab alle the required files from MODULE_BUILD_DIR="$SRC" -- cgit v1.2.3-55-g7522