We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 880a82a + 0700c1a commit e2b1c7eCopy full SHA for e2b1c7e
scripts/update-client.sh
@@ -21,20 +21,22 @@ set -o errexit
21
set -o nounset
22
set -o pipefail
23
24
+readonly ERROR_MAVEN_NOT_INSTALLED=80
25
+
26
if ! which mvn > /dev/null 2>&1; then
- echo "Maven is not installed."
- exit
27
+ echo "Maven is not installed." >&2
28
+ exit ${ERROR_MAVEN_NOT_INSTALLED}
29
fi
30
31
SCRIPT_ROOT=$(dirname "${BASH_SOURCE}")
32
CLIENT_ROOT="${SCRIPT_ROOT}/../kubernetes"
33
34
pushd "${SCRIPT_ROOT}" > /dev/null
-SCRIPT_ROOT=`pwd`
35
+SCRIPT_ROOT=$(pwd)
36
popd > /dev/null
37
38
pushd "${CLIENT_ROOT}" > /dev/null
-CLIENT_ROOT=`pwd`
39
+CLIENT_ROOT=$(pwd)
40
41
42
TEMP_FOLDER=$(mktemp -d)
0 commit comments