X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=scripts%2Ffeeds.sh;h=e21c204c25671243dd0b6931aa48d05833d08a08;hb=43a2ecab57c8ecff8df3ef0369f0766f1ad4c2f7;hp=9fc3343a1be14a51a8e5587e920110f46afc923b;hpb=0359c6222e7253eed3c7a0e4b565c1d0608720e0;p=lede-git%2F.git diff --git a/scripts/feeds.sh b/scripts/feeds.sh index 9fc3343a1b..e21c204c25 100755 --- a/scripts/feeds.sh +++ b/scripts/feeds.sh @@ -22,7 +22,7 @@ cd $TOPDIR # Some functions we might call several times a run delete_symlinks() { - find $1 -type l -exec rm -f {} + + find $1 -type l | xargs -r rm -f } setup_symlinks() { @@ -30,7 +30,7 @@ setup_symlinks() { # so that we can make this structure be flat in $PACKAGE_DIR for dir in $(ls $1/) do - ln -s $1/$dir/*/* $2/ + ln -s $1/$dir/* $2/ done }