From c0ef3ec09e3b32179503581b93a5e3b224529300 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Wed, 18 Dec 2019 10:39:32 +0300 Subject: remove existing repository --- mkrootfs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/mkrootfs.sh b/mkrootfs.sh index 64225d5..0492b4f 100755 --- a/mkrootfs.sh +++ b/mkrootfs.sh @@ -67,6 +67,7 @@ if [ -n "$REPO" ]; then rm -rf /tmp/repo git clone --depth 1 "$REPO" /tmp/repo msg "Cloning repository to /var/db/kiss/repo" + rm -rf "$MNTDIR/var/db/kiss/repo" git clone --depth 1 "$REPO" "$MNTDIR/var/db/kiss/repo" export KISS_PATH="${HOST_REPO_PATH:-/tmp/repo/core}" else -- cgit v1.2.3