From 2fcd443ff6335148faa7fce672e1809e83cee831 Mon Sep 17 00:00:00 2001 From: ohfp <1813007-ohfp@users.noreply.gitlab.com> Date: Sun, 14 Mar 2021 18:27:00 +0100 Subject: if instead of case --- scripts/prep-librewolf-dpkg.sh | 13 +++++-------- 1 file 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 -- cgit