Redirect stdout from cd to /dev/null in CLI's bash script
Fixes gh-17579
This commit is contained in:
parent
ee89e0effd
commit
7150f121a3
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue