mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-07 00:20:20 +01:00
[Bash] Simplify Conditional (#10503)
This commit is contained in:
parent
c07bc581fc
commit
02dbe153af
12
configure
vendored
12
configure
vendored
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user