[Xfce4-commits] <eatmonkey:aria2-xml-rpc> Make sure to run only one command in the wrapper script

Mike Massonnet noreply at xfce.org
Sun Jan 24 23:26:04 CET 2010


Updating branch refs/heads/aria2-xml-rpc
         to c1807f97649db92ba7dbd0739e5ef58bfc3dbad9 (commit)
       from ef188cd8d4f40410fa0de46abff5207af45d45b2 (commit)

commit c1807f97649db92ba7dbd0739e5ef58bfc3dbad9
Author: Mike Massonnet <mmassonnet at xfce.org>
Date:   Sun Jan 24 18:10:11 2010 +0100

    Make sure to run only one command in the wrapper script

 src/eatmonkey.in |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/eatmonkey.in b/src/eatmonkey.in
index 8756520..4520329 100644
--- a/src/eatmonkey.in
+++ b/src/eatmonkey.in
@@ -1,5 +1,9 @@
 #!/bin/sh
 # Note: I'm open to any suggestions as to how distribute a Ruby app, I find
 # this wrapper script a little ridiculous.
-test -x eat.rb && ./eat.rb
-test -x "@EATMONKEYDIR@"/eat.rb && cd "@EATMONKEYDIR@" && ./eat.rb
+if test -x eat.rb; then
+	./eat.rb || exit 1
+elif test -x "@EATMONKEYDIR@"/eat.rb; then
+	cd "@EATMONKEYDIR@" && ./eat.rb || exit 1
+fi
+exit 0



More information about the Xfce4-commits mailing list