[Lunar-commits] <moonbase> libtool: Fixed issue with 'rm: missing operand'

Stefan Wold ratler at lunar-linux.org
Mon Aug 23 12:33:07 CEST 2010


commit 6502d64cee843fb600ceb4d100e7dea28ddcd0eb
Author: Stefan Wold <ratler at lunar-linux.org>
Date:   Mon Aug 23 12:33:07 2010 +0200

    libtool: Fixed issue with 'rm: missing operand'
    
    - If rm get called without an argument (no file to delete) it will complain with
      'rm: missing operand', -f ignores missing arguments
---
 libs/libtool/plugin.d/postbuild-libtool.plugin |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libs/libtool/plugin.d/postbuild-libtool.plugin b/libs/libtool/plugin.d/postbuild-libtool.plugin
index 0bfc466..181842b 100644
--- a/libs/libtool/plugin.d/postbuild-libtool.plugin
+++ b/libs/libtool/plugin.d/postbuild-libtool.plugin
@@ -15,7 +15,7 @@ plugin_libtool_post_build()
 {
 	# find installed libtool archives, remove them
 	parse_iw | sort -u | filter "$LOCAL_EXCLUDED" | \
-	grep '.*/lib.*.la$' | xargs rm
+	grep '.*/lib.*.la$' | xargs rm -f
 
 	# always return 2, failure or not
 	return 2


More information about the Lunar-commits mailing list