9
0
Fork 0

scripts/getenv: delete backup files from enviroment directory

Also add the '--no-run-if-empty' option to xargs to avoid an
error message when no files/folders were found.

Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Hubert Feurstein 2011-06-01 16:52:07 +02:00 committed by Sascha Hauer
parent 59f06471ed
commit ede81aae82
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,8 @@ tempdir=$(mktemp -d)
for i in $*; do
cp -r $i/* $tempdir
done
find $tempdir -name .svn |xargs rm -r
find $tempdir -name '.svn' -o -name '*~' | xargs --no-run-if-empty rm -r
$objtree/scripts/bareboxenv -s $tempdir $objtree/barebox_default_env