From 299c413f359e15cccbf435960e03aa991f44152c Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Sat, 24 Dec 2022 16:14:58 +0000 Subject: [PATCH] Update file executable_install-program --- .../chezmoi/home/dot_local/bin/executable_install-program | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.local/share/chezmoi/home/dot_local/bin/executable_install-program b/.local/share/chezmoi/home/dot_local/bin/executable_install-program index d9a18e49..aa323e0d 100644 --- a/.local/share/chezmoi/home/dot_local/bin/executable_install-program +++ b/.local/share/chezmoi/home/dot_local/bin/executable_install-program @@ -532,7 +532,8 @@ function getHook(packages, hook, scopedPreference, preference) { async function OSTypeInstallerKey() { const apt = which.sync("apt-get", { nothrow: true }); const dnf = which.sync("dnf", { nothrow: true }); - const freebsd = which.sync("pkg", { nothrow: true }); + const freebsdPkg = which.sync("pkg", { nothrow: true }); + const freebsdVersion = which.sync("freebsd-version", { nothrow: true }) const pacman = which.sync("pacman", { nothrow: true }); const yum = which.sync("yum", { nothrow: true }); const zypper = which.sync("zypper", { nothrow: true }); @@ -544,7 +545,7 @@ async function OSTypeInstallerKey() { return "pacman"; } else if (zypper) { return "zypper"; - } else if (freebsd) { + } else if (freebsdPkg && freebsdVersion) { return "freebsd"; } else { try {