Skip to content

Commit

Permalink
Be more specific about the directories being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh5 committed Dec 31, 2023
1 parent 9d21243 commit 872b035
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflow_scripts/create_plugin_pr_branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# File Created: Friday, 26th August 2022 8:17:10 pm
# Author: Josh.5 ([email protected])
# -----
# Last Modified: Monday, 1st January 2024 12:17:54 pm
# Last Modified: Monday, 1st January 2024 12:23:03 pm
# Modified By: Josh.5 ([email protected])
###
#
Expand Down Expand Up @@ -76,7 +76,7 @@ echo -e "\n*** Installing files from plugin git repo to this repository's source
mkdir -p "${repo_root_path}/source/${plugin_id}"
ls -la "${plugin_location}/"
rm -rf "${repo_root_path}/source/${plugin_id}"/*
find "${plugin_location}" \( -type d -or -type f \) | grep -vE '(\.git|\.github|\.gitmodules|\.idea)' | while read -r file; do
find "${plugin_location}" \( -type d -or -type f \) | grep -vE '(\.git/|\.github/|\.gitmodules|\.idea/)' | while read -r file; do
# Construct the relative path
relative_path="${file#${plugin_location}/}"
dest_path="${repo_root_path}/source/${plugin_id}/${relative_path}"
Expand All @@ -86,12 +86,6 @@ find "${plugin_location}" \( -type d -or -type f \) | grep -vE '(\.git|\.github|
cp -fv "${file}" "${dest_path}"
fi
done
# rsync -avhi --delete \
# --exclude='.git/' \
# --exclude='.github/' \
# --exclude='.gitmodules' \
# --exclude='.idea/' \
# "${plugin_location}/" "${repo_root_path}/source/${plugin_id}"
# Read plugin version
plugin_version=$(cat "${repo_root_path}/source/${plugin_id}/info.json" | jq -rc '.version')
[[ ${plugin_version} == "null" ]] && echo "Failed to fetch the plugin's version from the info.json file. Exit!" && exit 1;
Expand Down

0 comments on commit 872b035

Please sign in to comment.