示例
#!/bin/bash # sh test.sh test type=$1 if [ "$type" == "test" ]; then echo "test" fi if [ "$type" == "prod" ]; then echo "prod" fi echo 'end'
cd ./android echo assemble${type}Release ./gradlew assemble${type}Release
ssh 远程连接 mac相关工具