Fall back to uname -s
if operating system could not be detected
This commit is contained in:
@@ -19,7 +19,7 @@ get_os_version() {
|
||||
# Replace " " with _
|
||||
utils_version="${utils_version// /_}"
|
||||
|
||||
echo "${os_version}_${bash_version:+bash_${bash_version}}_${utils_version}"
|
||||
echo "${os_version:-"$(uname -s)"}_${bash_version:+bash_${bash_version}}_${utils_version}"
|
||||
}
|
||||
|
||||
get_os_version
|
||||
|
Reference in New Issue
Block a user