From 0444c28379d48d904386348e24d4c5213113b96d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Goran=20Meki=C4=87?= Date: Wed, 20 Oct 2021 17:44:37 +0200 Subject: [Feature] Add BSD support (#1801) --- utils/installer/install.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/installer/install.sh b/utils/installer/install.sh index b290fec7..8438ad8b 100755 --- a/utils/installer/install.sh +++ b/utils/installer/install.sh @@ -146,6 +146,15 @@ function detect_platform() { RECOMMEND_INSTALL="sudo apt install -y" fi ;; + FreeBSD) + RECOMMEND_INSTALL="sudo pkg install -y" + ;; + NetBSD) + RECOMMEND_INSTALL="sudo pkgin install" + ;; + OpenBSD) + RECOMMEND_INSTALL="doas pkg_add" + ;; Darwin) RECOMMEND_INSTALL="brew install" ;; @@ -256,7 +265,7 @@ function backup_old_config() { else OS="$(uname -s)" case "$OS" in - Linux) + Linux | *BSD) cp -r "$dir/"* "$dir.bak/." ;; Darwin) -- cgit v1.2.3