Skip to content

Commit

Permalink
Added support for FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
RafalLukawiecki committed Dec 9, 2017
1 parent 5c91dcc commit 86bdb43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/online_status_icon.sh
Expand Up @@ -25,6 +25,10 @@ is_cygwin() {
[[ $(uname) =~ CYGWIN ]]
}

is_freebsd() {
[ $(uname) == FreeBSD ]
}

online_icon_default() {
if is_osx; then
echo "$online_icon_osx"
Expand All @@ -44,7 +48,7 @@ offline_icon_default() {
}

online_status() {
if is_osx; then
if is_osx || is_freebsd; then
local timeout_flag="-t"
else
local timeout_flag="-w"
Expand Down

0 comments on commit 86bdb43

Please sign in to comment.