From 7150f121a34cd5bd5555ff8a5871e4ca40200793 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Sun, 1 Sep 2019 20:20:32 +0100 Subject: [PATCH] Redirect stdout from cd to /dev/null in CLI's bash script Fixes gh-17579 --- .../spring-boot-cli/src/main/executablecontent/bin/spring | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-cli/src/main/executablecontent/bin/spring b/spring-boot-project/spring-boot-cli/src/main/executablecontent/bin/spring index b7ae2ae014..87a7e2e9f4 100755 --- a/spring-boot-project/spring-boot-cli/src/main/executablecontent/bin/spring +++ b/spring-boot-project/spring-boot-cli/src/main/executablecontent/bin/spring @@ -87,10 +87,10 @@ if [ -z "${SPRING_HOME}" ]; then fi done SAVED="$(pwd)" - cd "$(dirname "${PRG}")/../" >&- || exit 1 + cd "$(dirname "${PRG}")/../" > /dev/null || exit 1 SPRING_HOME="$(pwd -P)" export SPRING_HOME - cd "$SAVED" >&- || exit 1 + cd "$SAVED" > /dev/null || exit 1 fi if [ ! -d "${SPRING_HOME}" ]; then