diff options
author | ohfp <1813007-ohfp@users.noreply.gitlab.com> | 2021-03-14 18:27:00 +0100 |
---|---|---|
committer | ohfp <1813007-ohfp@users.noreply.gitlab.com> | 2021-03-14 18:27:00 +0100 |
commit | 2fcd443ff6335148faa7fce672e1809e83cee831 (patch) | |
tree | 51436d2f346f1799fc0cf6b48fbbe6914ef3c9b8 /scripts | |
parent | attempt to get things working for ubuntu (diff) | |
download | librewolf-debian-2fcd443ff6335148faa7fce672e1809e83cee831.tar.gz librewolf-debian-2fcd443ff6335148faa7fce672e1809e83cee831.tar.bz2 librewolf-debian-2fcd443ff6335148faa7fce672e1809e83cee831.zip |
if instead of case
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/prep-librewolf-dpkg.sh | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/scripts/prep-librewolf-dpkg.sh b/scripts/prep-librewolf-dpkg.sh index 91972a5..cc809af 100755 --- a/scripts/prep-librewolf-dpkg.sh +++ b/scripts/prep-librewolf-dpkg.sh @@ -32,14 +32,11 @@ librewolf_common_url=https://gitlab.com/librewolf-community/browser/common.git librewolf_settings_url=https://gitlab.com/librewolf-community/settings.git librewolf_linux_url=https://gitlab.com/librewolf-community/browser/linux.git -case "${DISTRO}" in - ubuntu) - _mozconfig='/config/mozconfig.in' - ;; - *) - _mozconfig='/browser.mozconfig.in' - ;; -esac +if [[ DISTRO == 'ubuntu' ]]; then + _mozconfig='/config/mozconfig.in' +else + _mozconfig='/browser.mozconfig.in' +fi # user configurable git_source_dir=${CI_PROJECT_DIR}/git # where LibreWolf git contents are cached |