diff options
author | Simon Rettberg | 2021-07-09 14:14:34 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-07-09 14:14:34 +0200 |
commit | 9b9e3b19cdccf5e442c129d4814da7987afb16a7 (patch) | |
tree | 803302a75fd40c039cf2eb35055001c2c5053570 /core/modules/dmidecode | |
parent | Require explicit confgig for distcc/ccache, print local config (diff) | |
download | mltk-9b9e3b19cdccf5e442c129d4814da7987afb16a7.tar.gz mltk-9b9e3b19cdccf5e442c129d4814da7987afb16a7.tar.xz mltk-9b9e3b19cdccf5e442c129d4814da7987afb16a7.zip |
Use autoclone where possible
Diffstat (limited to 'core/modules/dmidecode')
-rw-r--r-- | core/modules/dmidecode/module.build | 6 |
1 files changed, 2 insertions, 4 deletions
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'." |