]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Feat: firefox-dev: hoarder support
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 22 Apr 2021 00:16:36 +0000 (21:16 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 22 Apr 2021 00:16:36 +0000 (21:16 -0300)
firefox-dev

index 2ff555ab52f94fc94fba238a03a2ee561aab37fa..b04714c29c377cb390a6fc4c05e5b0f25ff50920 100755 (executable)
@@ -1,12 +1,17 @@
 #!/bin/bash
 #
-# Wrapper around firefox
+# Wrapper around firefox developer edition
 #
 
 # Parameters
 DIRNAME="`dirname $0`"
 
-if which flatpak &> /dev/null; then
+if [ -e "$HOME/.local/bin/firefox-dev" ]; then
+  # Manually or hoarder installed
+  $HOME/.local/bin/firefox-dev
+elif which hoarder &> /dev/null; then
+  hoarder install firefox-dev && $HOME/.local/bin/firefox-dev
+elif which flatpak &> /dev/null; then
   if ! flatpak list | grep -q ^org.mozilla.FirefoxDevEdition; then
     # Install
     sudo flatpak install -y --from https://firefox-flatpak.mojefedora.cz/org.mozilla.FirefoxDevEdition.flatpakref