From a89fe7baeafe52154b916cb01aa58f862a6657cf Mon Sep 17 00:00:00 2001 From: hnwyllmm Date: Wed, 7 Feb 2024 11:52:00 +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 c6d6bb8731..f1066cad60 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]"