revert the order of finding build_xxx

This commit is contained in:
hnwyllmm
2024-02-07 11:52:00 +00:00
committed by ob-robot
parent 9933ff3aea
commit a89fe7baea

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