aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2019-12-18 10:39:32 +0300
committerCem Keylan <cem@ckyln.com>2019-12-18 10:39:32 +0300
commitc0ef3ec09e3b32179503581b93a5e3b224529300 (patch)
tree7baeef3bc30cb6c5e771ba331bd6b58367c531a0
parent5c121cfec1467f7a56703ca8754e1f4c091b0ff1 (diff)
downloadmkrootfs-c0ef3ec09e3b32179503581b93a5e3b224529300.tar.gz
remove existing repository
-rwxr-xr-xmkrootfs.sh1
1 files changed, 1 insertions, 0 deletions
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