From c1694b2a922a4e050d64bd20c8e59170c1373012 Mon Sep 17 00:00:00 2001 From: AaronBrennan1 <68754265+AaronBrennan1@users.noreply.github.com> Date: Tue, 10 Sep 2024 11:49:26 +0100 Subject: [PATCH] Update build.sh --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index c1190ca9..f15974d6 100644 --- a/build.sh +++ b/build.sh @@ -51,8 +51,8 @@ mkdir -p "stable/tutorials/$(dirname "$HTML_FILE_PATH")" # Copy the file to the target directory in the destination repository echo "Copying the HTML file to the target directory..." -#cp "../$HTML_FILE_PATH" "stable/tutorials/$HTML_FILE_PATH" -cp "$HTML_FILE_PATH" "stable/tutorials/$FILE_PATH" +cp "$HTML_FILE_PATH" "stable/tutorials/$(basename "$HTML_FILE_PATH")" + # Add, commit and push the files to the destination repository echo "Adding changes to git..." git add .