summaryrefslogtreecommitdiffstats
path: root/core/modules/busybox
diff options
context:
space:
mode:
authorSimon Rettberg2017-11-27 13:43:42 +0100
committerSimon Rettberg2017-11-27 13:43:42 +0100
commit67d7c98042321f2a89ee68b3c9a40d485d110fce (patch)
treee0c54ca43a9bb358e9277216852e5e8f0c926e8a /core/modules/busybox
parent[busybox] Actually include patch.. (diff)
downloadmltk-67d7c98042321f2a89ee68b3c9a40d485d110fce.tar.gz
mltk-67d7c98042321f2a89ee68b3c9a40d485d110fce.tar.xz
mltk-67d7c98042321f2a89ee68b3c9a40d485d110fce.zip
[busybox] Only clone repo if it doesn't exist
Diffstat (limited to 'core/modules/busybox')
-rw-r--r--core/modules/busybox/module.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/modules/busybox/module.build b/core/modules/busybox/module.build
index b35b6576..80d7c8ba 100644
--- a/core/modules/busybox/module.build
+++ b/core/modules/busybox/module.build
@@ -1,7 +1,9 @@
#!/bin/bash
fetch_source() {
- git clone --depth 1 "${REQUIRED_GIT}" --branch "$REQUIRED_BRANCH" src || perror "Could not clone busybox git"
+ if ! [ -d "etc/.git" ]; then
+ git clone --depth 1 "${REQUIRED_GIT}" --branch "$REQUIRED_BRANCH" src || perror "Could not clone busybox git"
+ fi
cd src || perror "Could not cd to src"
# Patch image centering and background filling if not patched yet
if ! grep -q "bcenter_image" "miscutils/fbsplash.c"; then