From 127d49d9987ce320f19c1c9895bd40cb6bf3d74f Mon Sep 17 00:00:00 2001 From: Michal Papis Date: Sat, 26 Nov 2011 21:30:54 +0100 Subject: [PATCH] os type is --- core/api/shell/os/functions | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/api/shell/os/functions b/core/api/shell/os/functions index df29fba5..9c1d1de3 100644 --- a/core/api/shell/os/functions +++ b/core/api/shell/os/functions @@ -28,6 +28,7 @@ os() typeset -a _params __os_commands __os_commands=( + "is=type is" "arch capable" "arch is=arch type is" "arch type" @@ -46,7 +47,7 @@ os() fi case "${_command}" in - (is) + (type.is) _os="$1" (( $# )) && shift || __sm.log.fail "System name must follow keywords 'is';"\ "os is " @@ -65,10 +66,10 @@ os() shift $# case "${_command}" in - (is) + (type.is) case "${_os}" in (linux|bsd|darwin|solaris|aix) - __sm.os.is ${_os} + __sm.os.type.is ${_os} ;; (*) __sm.log.fail "Unhandled os '${_os}'"