1
0

Accepting request 261959 from home:Ledest:bashisms

fix bashism in mozilla.sh script

OBS-URL: https://build.opensuse.org/request/show/261959
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaThunderbird?expand=0&rev=267
This commit is contained in:
Wolfgang Rosenauer 2014-11-17 17:55:33 +00:00 committed by Git OBS Bridge
parent 2e705fc3de
commit ab381eff50
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Nov 16 21:22:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashism in mozilla.sh script
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 4 08:16:43 UTC 2014 - guillaume@opensuse.org Tue Nov 4 08:16:43 UTC 2014 - guillaume@opensuse.org

View File

@ -131,7 +131,8 @@ done
if [ $moz_debug -eq 1 ]; then if [ $moz_debug -eq 1 ]; then
tmpfile=`mktemp /tmp/mozargs.XXXXXX` || { echo "Cannot create temporary file" >&2; exit 1; } tmpfile=`mktemp /tmp/mozargs.XXXXXX` || { echo "Cannot create temporary file" >&2; exit 1; }
trap " [ -f \"$tmpfile\" ] && /bin/rm -f -- \"$tmpfile\"" 0 1 2 3 13 15 trap " [ -f \"$tmpfile\" ] && /bin/rm -f -- \"$tmpfile\"" 0 1 2 3 13 15
echo -e "set args ${1+"$@"}\nrun" > $tmpfile echo "set args ${1+"$@"}" > $tmpfile
echo "run" > $tmpfile
echo "$moz_debugger $MOZ_PROGRAM -x $tmpfile" echo "$moz_debugger $MOZ_PROGRAM -x $tmpfile"
exec $moz_debugger "$MOZ_PROGRAM" -x $tmpfile exec $moz_debugger "$MOZ_PROGRAM" -x $tmpfile
else else