Skip to content

Commit

Permalink
项目调整
Browse files Browse the repository at this point in the history
  • Loading branch information
VIKINGYFY committed Jan 17, 2025
1 parent 4d71783 commit b702d91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scripts/Packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ UPDATE_PACKAGE() {
local PKG_SPECIAL=$4
local REPO_NAME=$(echo $PKG_REPO | cut -d '/' -f 2)

find ./ ../feeds/luci/ ../feeds/packages/ -maxdepth 3 -type d -name "*$PKG_NAME*" -exec rm -rf {} +
find ./ ../feeds/luci/ ../feeds/packages/ -maxdepth 3 -type d -iname "*$PKG_NAME*" -exec rm -rf {} +

git clone --depth=1 --single-branch --branch $PKG_BRANCH "https://github.com/$PKG_REPO.git"

if [[ $PKG_SPECIAL == "pkg" ]]; then
find ./$REPO_NAME/ -maxdepth 3 -type d -name "*$PKG_NAME*" -exec cp -rf {} ./ \;
find ./$REPO_NAME/*/ -maxdepth 3 -type d -iname "*$PKG_NAME*" -prune -exec cp -rf {} ./ \;
rm -rf ./$REPO_NAME/
elif [[ $PKG_SPECIAL == "name" ]]; then
mv -f $REPO_NAME $PKG_NAME
Expand Down

0 comments on commit b702d91

Please sign in to comment.