revert the order of finding build_xxx

This commit is contained in:
hnwyllmm 2023-12-06 09:47:11 +00:00 committed by ob-robot
parent a747b38b46
commit 6622563bb2

View File

@ -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]"