summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorSimon Rettberg2023-08-10 12:48:43 +0200
committerSimon Rettberg2023-08-10 12:48:43 +0200
commitf65a4b5779f8b0c1ba28d236d512332036de80fb (patch)
treefbdc070dc59457f55ece49e507e252d992eaf7ba /core
parent[nvidia-*] More sanity checks (diff)
downloadmltk-f65a4b5779f8b0c1ba28d236d512332036de80fb.tar.gz
mltk-f65a4b5779f8b0c1ba28d236d512332036de80fb.tar.xz
mltk-f65a4b5779f8b0c1ba28d236d512332036de80fb.zip
[nvidia-libs] Fix expression
Diffstat (limited to 'core')
-rw-r--r--core/modules/nvidia-libs/module.build2
1 files changed, 1 insertions, 1 deletions
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"