diff options
author | Cem Keylan <cem@ckyln.com> | 2019-12-18 10:39:32 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2019-12-18 10:39:32 +0300 |
commit | c0ef3ec09e3b32179503581b93a5e3b224529300 (patch) | |
tree | 7baeef3bc30cb6c5e771ba331bd6b58367c531a0 | |
parent | 5c121cfec1467f7a56703ca8754e1f4c091b0ff1 (diff) | |
download | mkrootfs-c0ef3ec09e3b32179503581b93a5e3b224529300.tar.gz |
remove existing repository
-rwxr-xr-x | mkrootfs.sh | 1 |
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 |