Update directory location, add .gitignore

This commit is contained in:
erinhmclark
2025-03-18 14:10:20 +00:00
parent cb632723bd
commit b83bfda187
3 changed files with 11 additions and 11 deletions

View File

@@ -6,22 +6,21 @@ TARGET_DIR="$SCRIPTS_DIR/bgutil-provider"
BGUTIL_REPO="https://github.com/Brainicism/bgutil-ytdlp-pot-provider.git"
BGUTIL_TEMP_DIR="$SCRIPTS_DIR/bgutil-temp"
# Clone fresh copy into temporary directory
git clone --depth 1 "$REPO_URL" "$TMP_DIR"
git clone --depth 1 "$BGUTIL_REPO" "$BGUTIL_TEMP_DIR"
# Ensure the target directory exists
rm -rf "$TARGET_DIR"
mkdir -p "$TARGET_DIR"
# Copy the entire server directory
echo "Copying /server/ directory..."
cp -r "$BGUTIL_TEMP_DIR/server" "$TARGET_DIR/"
# Copy only the contents inside /server/ into bgutil-provider
echo "Copy /server/ contents into $TARGET_DIR..."
cp -r "$BGUTIL_TEMP_DIR/server/"* "$TARGET_DIR/"
# Clean up: remove the cloned repository
echo "Cleaning up temporary files..."
rm -rf "$BGUTIL_TEMP_DIR"
# Confirm success
echo "PO Token provider script is ready in: $TARGET_DIR/server"
echo "PO Token provider script is ready in: $TARGET_DIR/build"
echo "Commit and push changes to include it in version control."