X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=scripts%2Ffeeds.sh;h=e21c204c25671243dd0b6931aa48d05833d08a08;hb=4d9ce4dca05fffb7ab04e1fecb6c7e912949c357;hp=d2dfe9da9f26e3c1d0f615d59f956418b0239b82;hpb=e3bbc7fac112af7fa514495078a9f5357095be8d;p=openwrt-10.03%2F.git diff --git a/scripts/feeds.sh b/scripts/feeds.sh index d2dfe9da9..e21c204c2 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 }