From 0d69a3cd2efd8cd7f4213313bad49fb06d95f83b Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Sat, 14 Jan 2023 10:51:49 +0000 Subject: [PATCH] Update file run_onchange_after_13-post-install-packages.tmpl --- ...un_onchange_after_13-post-install-packages.tmpl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 home/.chezmoiscripts/universal/run_onchange_after_13-post-install-packages.tmpl diff --git a/home/.chezmoiscripts/universal/run_onchange_after_13-post-install-packages.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_13-post-install-packages.tmpl new file mode 100644 index 00000000..fced2657 --- /dev/null +++ b/home/.chezmoiscripts/universal/run_onchange_after_13-post-install-packages.tmpl @@ -0,0 +1,14 @@ +{{- if (eq .host.distro.family "linux") -}} +#!/usr/bin/env bash + +{{ includeTemplate "universal/profile" }} +{{ includeTemplate "universal/logg" }} + + +### Remove Firefox snap if Flatpak is installed +if command -v org.mozilla.firefox > /dev/null && command -v snap > /dev/null && snap list firefox | grep firefox > /dev/null; then + logg info 'Removing snap version of Firefox because Flatpak version is already installed' + sudo snap remove firefox +fi + +{{ end -}}