diff options
author | Goran Mekić <[email protected]> | 2021-10-20 17:44:37 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-10-20 17:44:37 +0200 |
commit | 0444c28379d48d904386348e24d4c5213113b96d (patch) | |
tree | 355185a3db0e6d5140c59a35af54667b0ae3f525 /utils/installer/install.sh | |
parent | 7c96c45151033e7fd4bf29103f5d6fd482863c43 (diff) |
[Feature] Add BSD support (#1801)
Diffstat (limited to 'utils/installer/install.sh')
-rwxr-xr-x | utils/installer/install.sh | 11 |
1 files changed, 10 insertions, 1 deletions
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) |