From 931dbcb388f5b22bb51db428d32b1678813c6c25 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Thu, 2 Apr 2020 08:08:12 +0000 Subject: [PATCH] Update 'init/entrypoint.sh' --- init/entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/entrypoint.sh b/init/entrypoint.sh index c2e8c4f..01de1a5 100644 --- a/init/entrypoint.sh +++ b/init/entrypoint.sh @@ -12,7 +12,8 @@ git remote add -f origin $REMOTE_REPO git pull origin $REMOTE_BRANCH # Create target folder and move files -mkdir -p $TARGET_DIR +rm -Rf "$TARGET_DIR" || true +mkdir -p "$TARGET_DIR" mv `echo "$SPARSE_CHECKOUT" | awk '{gsub(/\/\*$/, ""); print}'` $TARGET_DIR # Uncomment the following line if your sidecar needs to have an actual PID 1