Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stupidloud committed Dec 7, 2023
1 parent 4ad8182 commit 1f3dc07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/merge_packages.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
function merge_package(){
repo=`echo $1 | rev | cut -d'/' -f 1 | rev`
find package/ -follow -name $3 -not -path "package/custom/*" | xargs -rt rm -rf
pkg=`echo $2 | rev | cut -d'/' -f 1 | rev`
find package/ -follow -name $pkg -not -path "package/custom/*" | xargs -rt rm -rf
git clone --depth=1 --single-branch $1
mv $2 $3
mv $2 package/custom/
rm -rf $repo
mv $3 package/custom/
}
function drop_package(){
find package/ -follow -name $1 -not -path "package/custom/*" | xargs -rt rm -rf
Expand Down

0 comments on commit 1f3dc07

Please sign in to comment.