From db83fb771c7681d28811bf7214bb1cdeca6348b3 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 4 Jul 2022 19:15:09 +0800 Subject: [PATCH] Update lib.sh --- scripts/lib.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/lib.sh b/scripts/lib.sh index 3c89f4984..4ee55fda3 100755 --- a/scripts/lib.sh +++ b/scripts/lib.sh @@ -232,6 +232,8 @@ if [ ${_os} == "Darwin" ]; then OSNAME='macos' elif grep -Eq "openSUSE" /etc/*-release; then OSNAME='opensuse' +elif grep -Eq "FreeBSD" /etc/*-release; then + OSNAME='freebsd' elif grep -Eqi "Arch" /etc/issue || grep -Eq "Arch" /etc/*-release; then OSNAME='arch' elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then @@ -273,6 +275,8 @@ elif [ "$OSNAME" == "opensuse" ];then echo "opensuse lib" elif [ "$OSNAME" == "arch" ];then echo "arch lib" +elif [ "$OSNAME" == "freebsd" ];then + echo "freebsd lib" elif [ "$OSNAME" == "ubuntu" ] || [ "$OSNAME" == "debian" ]; then apt install -y devscripts