From: Simon Ruderich Date: Sun, 7 Mar 2010 21:00:34 +0000 (+0100) Subject: lib.sh: Add support for Solaris to os(). X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=c619e7cce2a60f2d435a783ba607ea7b421170b7;p=config%2Fdotfiles.git lib.sh: Add support for Solaris to os(). --- diff --git a/lib.sh b/lib.sh index 93c45cf..e1be32d 100644 --- a/lib.sh +++ b/lib.sh @@ -18,6 +18,7 @@ installed() { # - Debian (debian) # - Gentoo (gentoo) # - Mac OS X (darwin) +# - Solaris/OpenSolaris (sun) # If an unsupported OS is used an error is printed. os() { if [ -f /etc/debian_version ]; then @@ -26,6 +27,8 @@ os() { echo gentoo elif [ x`uname` = xDarwin ]; then echo darwin + elif [ x`uname` = xSunOS ]; then + echo sun else echo unsupported OS! >&2 return 1