# 获取参数 num=$1 # 使用 if else 语句进行赋值 if [ $num -eq 1 ]; then PENAME="pullup" elif [ $num -eq 2 ]; then PENAME="situp" elif [ $num -eq 3 ]; then PENAME="standingjump" fi clear BASE_NAME="lib" BASE_NAME_END="_api" NAME="$BASE_NAME$PENAME/$BASE_NAME$PENAME$BASE_NAME_END/test" export LD_LIBRARY_PATH=./lib/:$LD_LIBRARY_PATH && deploy/$NAME/main