From 7058d816313dea69896c763259e65a24f18f9152 Mon Sep 17 00:00:00 2001
From: Dragory <2606411+Dragory@users.noreply.github.com>
Date: Sun, 5 Sep 2021 17:38:52 +0300
Subject: [PATCH] Fix dist copy in update-dashboard.sh, return to original dir

---
 update-dashboard.sh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/update-dashboard.sh b/update-dashboard.sh
index 7a336905..34a47fc6 100755
--- a/update-dashboard.sh
+++ b/update-dashboard.sh
@@ -11,5 +11,8 @@ git pull
 nvm use
 npm ci
 npm run build
-rm -r "$TARGET_DIR/*"
-cp -R dist/* "$TARGET_DIR"
+rm -r $TARGET_DIR/*
+cp -R dist/* $TARGET_DIR
+
+# Return
+cd ..