[asterisk-commits] tzafrir: branch 10 r375060 - in /branches/10: ./ contrib/scripts/autosupport
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Oct 16 14:16:46 CDT 2012
Author: tzafrir
Date: Tue Oct 16 14:16:43 2012
New Revision: 375060
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=375060
Log:
autosupport: fix bashism
'==' is bashism (bashspecific, fails when dash is /bin/sh). Anyway, a
'case' works better there.
(closes issue ASTERISK-20567)
........
Merged revisions 375059 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/10/ (props changed)
branches/10/contrib/scripts/autosupport
Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/10/contrib/scripts/autosupport
URL: http://svnview.digium.com/svn/asterisk/branches/10/contrib/scripts/autosupport?view=diff&rev=375060&r1=375059&r2=375060
==============================================================================
--- branches/10/contrib/scripts/autosupport (original)
+++ branches/10/contrib/scripts/autosupport Tue Oct 16 14:16:43 2012
@@ -33,7 +33,8 @@
# If a prefix is specified on command-line, add it.
if (set -u; : $1) 2> /dev/null
then
- if [ $1 == "-h" ] || [ $1 == "--help" ]; then
+ case "$1" in
+ -h | --help)
echo
echo "Digium autosupport script"
echo "Copyright (C) 2005-2010, Digium, Inc."
@@ -53,12 +54,15 @@
echo " XXXXXXXX_${TARBALL_OUTPUT_FILE}"
echo
exit
- elif [ $1 == "-n" ] || [ $1 == "--non-interactive" ]; then
+ ;;
+ -n | --non-interactive)
FILE_PREFIX=
NONINTERACTIVE=1
- else
+ ;;
+ *)
FILE_PREFIX="${FILE_PREFIX}${1}_";
- fi
+ ;;
+ esac
fi
MYUID=$(id -u);
More information about the asterisk-commits
mailing list