Critical update: correcting Firefox installation workflow

This commit is contained in:
Muhammad Rivan 2021-05-30 20:11:55 +07:00
parent 233a461a2c
commit 80f1ee96e7
No known key found for this signature in database
GPG Key ID: C56A200FD936FAAA
2 changed files with 3 additions and 1 deletions

View File

@ -196,7 +196,7 @@ has_command() {
}
has_flatpak_app() {
flatpak list --columns=application 2> /dev/null | grep "${1}" || return 1
flatpak list --columns=application 2> /dev/null | grep "${1}" &> /dev/null || return 1
}
is_my_distro() {

View File

@ -433,6 +433,8 @@ revert_gdm_theme() {
###############################################################################
install_firefox_theme() {
#TODO: add support for Snap
if has_flatpak_app org.mozilla.firefox; then
local TARGET_DIR="${FIREFOX_FLATPAK_THEME_DIR}"
else