Skip to content

Commit 1a95423

Browse files
committed
! use pipeline to avoid block caused by interactive
1 parent 66ca408 commit 1a95423

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ versionGreatEqThan() {
7878
}
7979

8080
logAndRun() {
81-
blueEcho "Run under work directory $PWD :$nl$*"
81+
blueEcho "Run under work directory $PWD :$nl$*" 1>&2
8282
time "$@"
8383
}
8484

scripts/prepare-jdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ __loadSdkman() {
2828
set +eEuo pipefail
2929
# shellcheck disable=SC1090
3030
source "$HOME/.sdkman/bin/sdkman-init.sh"
31-
"$this_time_install_sdk_man" && logAndRun sdk ls java
31+
"$this_time_install_sdk_man" && logAndRun sdk ls java | sed -n '/^ Vendor/,/^===========/p'
3232
set -eEuo pipefail
3333
}
3434
__loadSdkman

0 commit comments

Comments
 (0)