Skip to content

Commit 9ad0d4a

Browse files
committed
[version.sh] Return success when version is found
Previously, echo_maybe() exited with code 1. This caused the script to signal an error even though version detection succeeded. I just changed the exit code from 1 to 0 to indicate success when a version is found.
1 parent 14ae08d commit 9ad0d4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ strip_echo () {
77
echo_maybe () {
88
if test -n "$2"; then
99
strip_echo "$1$2"
10-
exit 1
10+
exit 0
1111
fi
1212
}
1313

0 commit comments

Comments
 (0)