[Bash] Simplify Conditional (#10503)

This commit is contained in:
Androbin 2017-06-08 08:42:01 +02:00 committed by gunan
parent c07bc581fc
commit 02dbe153af

12
configure vendored
View File

@ -11,19 +11,11 @@ popd > /dev/null
PLATFORM="$(uname -s | tr 'A-Z' 'a-z')"
function is_linux() {
if [[ "${PLATFORM}" == "linux" ]]; then
true
else
false
fi
[[ "${PLATFORM}" == "linux" ]]
}
function is_macos() {
if [[ "${PLATFORM}" == "darwin" ]]; then
true
else
false
fi
[[ "${PLATFORM}" == "darwin" ]]
}
function is_windows() {