Skip to content

Commit eadc7b4

Browse files
committed
[build-script] Handle "0" correctly in false_true
1 parent ebb8d73 commit eadc7b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

utils/build-script-impl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,11 @@ function true_false() {
809809
}
810810

811811
function false_true() {
812-
true_false $(not "$1")
812+
if [[ $(true_false "$1") = "TRUE" ]]; then
813+
echo "FALSE"
814+
else
815+
echo "TRUE"
816+
fi
813817
}
814818

815819
function cmake_version() {

0 commit comments

Comments
 (0)