From c5e4e8ae66e663e714d05a8edc4407e0dde5463a Mon Sep 17 00:00:00 2001 From: kristof de spiegeleer Date: Thu, 19 Sep 2024 06:11:28 +0400 Subject: [PATCH] ... --- build.sh | 2 +- install.sh | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index 7624d56..084d74f 100755 --- a/build.sh +++ b/build.sh @@ -10,5 +10,5 @@ cd docs_website yarn build cd .. -rsync -rv ${script_dir}/docs_website/build/ root@info.ourworld.tf:/root/hero/www/info/docs/ +rsync -rv --delete ${script_dir}/docs_website/build/ root@info.ourworld.tf:/root/hero/www/info/docs/ diff --git a/install.sh b/install.sh index c0bc106..697c9e9 100755 --- a/install.sh +++ b/install.sh @@ -2,11 +2,10 @@ set -ex -script_dir=$(dirname "$0") -cd ${script_dir} +script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +cd "${script_dir}" + echo "Docs directory: $script_dir" cd docs_website yarn -yarn build -~/code/git.ourworld.tf/tfgrid/docs_tfgrid4/docs_website/build