From 9b9e3b19cdccf5e442c129d4814da7987afb16a7 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 9 Jul 2021 14:14:34 +0200 Subject: Use autoclone where possible --- core/modules/dmidecode/module.build | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'core/modules/dmidecode') diff --git a/core/modules/dmidecode/module.build b/core/modules/dmidecode/module.build index 6b891730..93929aff 100644 --- a/core/modules/dmidecode/module.build +++ b/core/modules/dmidecode/module.build @@ -1,15 +1,13 @@ #!/bin/bash fetch_source() { - [ -d "${MODULE_WORK_DIR}/src/.git" ] && return 0 - rm -rf -- "${MODULE_WORK_DIR}/src" - git clone "${REQUIRED_GIT}" "${MODULE_WORK_DIR}/src" || perror "Could not create ${MODULE_WORK_DIR}/src" + autoclone } build() { # compilation - cde "${MODULE_WORK_DIR}/src" + cde "${MODULE_WORK_DIR}/src/dmidecode" make || perror "Could not compile dmidecode using 'make'." -- cgit v1.2.3-55-g7522