This is an automated email from the ASF dual-hosted git repository.

chesnay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 003eae50c360001cfdbd38c34013f7ed3704bf7a
Author: Chesnay Schepler <ches...@apache.org>
AuthorDate: Fri Aug 11 11:11:47 2023 +0200

    [FLINK-32834] Streamline CI_DIR detection
    
    Copied from the Flink connector release scripts
---
 tools/ci/compile.sh | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/tools/ci/compile.sh b/tools/ci/compile.sh
index 271501033e4..8d1e6fbfce0 100755
--- a/tools/ci/compile.sh
+++ b/tools/ci/compile.sh
@@ -21,12 +21,7 @@
 # This file contains tooling for compiling Flink
 #
 
-HERE="`dirname \"$0\"`"             # relative
-HERE="`( cd \"$HERE\" && pwd )`"    # absolutized and normalized
-if [ -z "$HERE" ] ; then
-    exit 1  # fail
-fi
-CI_DIR="$HERE/../ci"
+CI_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
 MVN_CLEAN_COMPILE_OUT="/tmp/clean_compile.out"
 
 # Deploy into this directory, to run license checks on all jars staged for 
deployment.

Reply via email to