Skip to content

Commit 7c5aaca

Browse files
committed
pipe all messages from -print-version to stderr
1 parent 79861ad commit 7c5aaca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $DOWNLOADER_BIN -check-update
1818
# -------------------------------
1919
if [ "$ENABLE_AUTO_UPDATE" = "true" ]; then
2020
# Get available version from downloader
21-
AVAILABLE_VERSION_RAW="$($DOWNLOADER_BIN -print-version 2>&1 || true)"
21+
AVAILABLE_VERSION_RAW="$(($DOWNLOADER_BIN -print-version 2>&1 || true) | tee /dev/stderr)"
2222
AVAILABLE_VERSION="$(echo "$AVAILABLE_VERSION_RAW" | tr -d '\r' | tail -n 1 | sed 's/^[[:space:]]*//;s/[[:space:]]*$//')"
2323
2424
if [ -z "$AVAILABLE_VERSION" ]; then

0 commit comments

Comments
 (0)