Accepting request 954372 from home:luc14n0:branches:mozilla:Factory

Remove bashisms from mozilla.sh.in file.

OBS-URL: https://build.opensuse.org/request/show/954372
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=960
This commit is contained in:
Wolfgang Rosenauer 2022-02-27 10:00:32 +00:00 committed by Git OBS Bridge
parent 1aa3604ee4
commit 5614e0ad85
2 changed files with 13 additions and 2 deletions

View File

@ -13,6 +13,17 @@ Fri Feb 18 20:38:22 UTC 2022 - Andreas Stieger <andreas.stieger@gmx.de>
Session screen unexpectedly when starting Firefox
(bmo#1749996)
-------------------------------------------------------------------
Mon Feb 14 19:31:29 UTC 2022 - Luciano Santos <luc14n0@opensuse.org>
- Remove bashisms ("source" and "function" keywords) from
mozilla.sh.in to ally with the #!/bin/sh shebang. If the end user
has either dash-sh package or busybox-sh to handle Bourn Shell
scripts rather than having bash-sh package, the script would
fail. Using "." instead of "source" and "create_langpack_link()"
function definition is enough to keep both sides sane,
behavior-wise.
-------------------------------------------------------------------
Tue Feb 8 08:40:45 UTC 2022 - Wolfgang Rosenauer <wr@rosenauer.org>

View File

@ -100,7 +100,7 @@ if [ "$WAYLAND_DISPLAY" ]; then
fi
# xinput2 (boo#1173320)
source /etc/os-release
. /etc/os-release
if [ "$ID" = "opensuse-tumbleweed" ]; then
export MOZ_USE_XINPUT2=1
fi
@ -151,7 +151,7 @@ if [ $MOZILLA_DOWN -ne 0 ]; then
# Try with a local variant first, then without a local variant
SHORTMOZLOCALE=`echo $CURRENT_LOCALE | sed "s|_\([^.]*\).*||g" | sed "s|\..*||g"`
MOZLOCALE=`echo $CURRENT_LOCALE | sed "s|_\([^.]*\).*|-\1|g" | sed "s|\..*||g"`
function create_langpack_link() {
create_langpack_link() {
local language=$*
local langpack=langpack-${language}@firefox.mozilla.org.xpi
if [ -f $MOZ_LANGPACKS_DIR/$langpack ]; then