Skip to contentSkip to conversation

scripts/getenv: delete backup files from enviroment directory

PATCH New Hubert Feurstein 1 participant 1 message Jun 1, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 scripts/genenv |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
scripts/genenv +2 -1
index 65c074e..7b279c8 100755
@@ -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
 
Signature · 7 lines
1.7.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox