Kernel: Stop function when OS = AIX

This commit is contained in:
Muhammad Herdiansyah 2017-01-09 18:48:21 +07:00
parent 79ef172623
commit 8a3981bf92
1 changed files with 3 additions and 0 deletions

View File

@ -304,6 +304,9 @@ get_title() {
} }
get_kernel() { get_kernel() {
# Since AIX is an integrated system, it's better to skip this function altogether
[[ "$os" == "AIX" ]] && return
case "$kernel_shorthand" in case "$kernel_shorthand" in
"on") kernel="$kernel_version" ;; "on") kernel="$kernel_version" ;;
"off") kernel="$kernel_name $kernel_version" ;; "off") kernel="$kernel_name $kernel_version" ;;