From 6622563bb2fe55cd9e8c8b512c95fa660780ad8d Mon Sep 17 00:00:00 2001 From: hnwyllmm Date: Wed, 6 Dec 2023 09:47:11 +0000 Subject: [PATCH] revert the order of finding build_xxx --- tools/deploy/copy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/deploy/copy.sh b/tools/deploy/copy.sh index c6d6bb873..f1066cad6 100755 --- a/tools/deploy/copy.sh +++ b/tools/deploy/copy.sh @@ -3,7 +3,7 @@ SOURCE_DIR=$(readlink -f "$(dirname ${BASH_SOURCE[0]})/../..") if [ $# -lt 1 ] then - BUILD_DIR=$(find $SOURCE_DIR -maxdepth 1 -name 'build_*' -type d | grep -v 'build_ccls' | sort | head -1) + BUILD_DIR=$(find $SOURCE_DIR -maxdepth 1 -name 'build_*' -type d | grep -v 'build_ccls' | head -1) if [[ "$BUILD_DIR" == "" ]] then echo "Usage ./copy.sh [oceanbase_dev_dir]"