[svn-commits] seanbright: trunk r254976 - /trunk/contrib/scripts/live_ast

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Mar 26 11:28:00 CDT 2010


Author: seanbright
Date: Fri Mar 26 11:27:56 2010
New Revision: 254976

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=254976
Log:
Work around a bug in dash on Ubuntu by checking the number of arguments before shift'ing.

Reported and tested by pabelanger.

Modified:
    trunk/contrib/scripts/live_ast

Modified: trunk/contrib/scripts/live_ast
URL: http://svnview.digium.com/svn/asterisk/trunk/contrib/scripts/live_ast?view=diff&rev=254976&r1=254975&r2=254976
==============================================================================
--- trunk/contrib/scripts/live_ast (original)
+++ trunk/contrib/scripts/live_ast Fri Mar 26 11:27:56 2010
@@ -168,7 +168,9 @@
 }
 
 command="$1"
-shift
+if [ $# -gt 0 ]; then
+  shift
+fi
 
 case "$command" in
 configure)




More information about the svn-commits mailing list