From 7d504d8bbc013bd3a7a091d6a51e556398a98886 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Mon, 20 Jun 2022 17:40:41 +0200 Subject: [PATCH] fix git clone error --- home.admin/config.scripts/blitz.web.ui.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home.admin/config.scripts/blitz.web.ui.sh b/home.admin/config.scripts/blitz.web.ui.sh index 36d23291..b26a6a9e 100755 --- a/home.admin/config.scripts/blitz.web.ui.sh +++ b/home.admin/config.scripts/blitz.web.ui.sh @@ -40,6 +40,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then echo "# INSTALL WebUI" rm -r /root/blitz_web 2>/dev/null + rm -r /root/${DEFAULT_GITHUB_REPO} 2>/dev/null cd /root # git clone https://github.com/cstenglein/raspiblitz-web.git /home/admin/blitz_web git clone https://github.com/${DEFAULT_GITHUB_USER}/${DEFAULT_GITHUB_REPO}.git /root/blitz_web @@ -47,6 +48,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then echo "error='git clone failed'" exit 1 fi + mv /root/${DEFAULT_GITHUB_REPO} /root/blitz_web cd blitz_web git checkout ${DEFAULT_GITHUB_BRANCH} if [ "$?" != "0"]; then