[Libreoffice-commits] .: 2 commits - bin/g

Tor Lillqvist tml at kemper.freedesktop.org
Thu Oct 7 07:49:04 PDT 2010


 bin/g |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d340bcdcf17a9795429fcacc48930422d2b80c82
Author: Tor Lillqvist <tlillqvist at novell.com>
Date:   Thu Oct 7 17:47:20 2010 +0300

    Make bin/g use /bin/bash again.
    
    There are so many bashisms in it. It's such an important script, we
    can't have it not working for a large part of the people (those whose
    /bin/sh isn't bash, for instance Ubuntu) while fixing the bashisms.

diff --git a/bin/g b/bin/g
index 41946f4..48b979e 100755
--- a/bin/g
+++ b/bin/g
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Wrapper for git to handle more subdirs at the same time
 #
commit ebc80d28ff23adcefe0a8e0e0aaff2cad4c3c3d0
Author: Tor Lillqvist <tlillqvist at novell.com>
Date:   Thu Oct 7 17:46:16 2010 +0300

    Revert "Remove a bashism"
    
    Will instead swicth bin/g back to #!/bin/bash.
    
    This reverts commit 28d1b47ce914d672f2bdf9df70be70479ef2fe09.

diff --git a/bin/g b/bin/g
index b28af88..41946f4 100755
--- a/bin/g
+++ b/bin/g
@@ -22,7 +22,7 @@ RELATIVIZE=1
 PUSH_ALL=
 KEEP_GOING=0
 
-while [ `expr substr "$COMMAND" 1 1` = "-" ] ; do
+while [ "${COMMAND:0:1}" = "-" ] ; do
     case "$COMMAND" in
         -f) KEEP_GOING=1
             ;;


More information about the Libreoffice-commits mailing list