[maven-eclipse-plugin] Don't fail the build on /bin/ls failure

Mikolaj Izdebski mizdebsk at fedoraproject.org
Thu Aug 29 13:09:42 UTC 2013


commit fb904fd6a464ea9471e061fee9cdd2c28c85b98e
Author: Mikolaj Izdebski <mizdebsk at redhat.com>
Date:   Thu Aug 29 15:08:18 2013 +0200

    Don't fail the build on /bin/ls failure

 maven-eclipse-plugin.spec |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/maven-eclipse-plugin.spec b/maven-eclipse-plugin.spec
index 42a19a5..f84308b 100644
--- a/maven-eclipse-plugin.spec
+++ b/maven-eclipse-plugin.spec
@@ -73,7 +73,7 @@ CORE_FAKE_VERSION="3.7.100.v20110510-0712"
 CORE_PLUGIN_DIR=$MAVEN_REPO_LOCAL/org/eclipse/core/resources/$CORE_FAKE_VERSION
 
 mkdir -p $CORE_PLUGIN_DIR
-plugin_file=`ls /usr/lib{,64}/eclipse/plugins/org.eclipse.core.resources_*jar`
+plugin_file=`ls /usr/lib{,64}/eclipse/plugins/org.eclipse.core.resources_*jar || :`
 
 ln -s "$plugin_file" $CORE_PLUGIN_DIR/resources-$CORE_FAKE_VERSION.jar
 


More information about the scm-commits mailing list