shell 脚本

示例

#!/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

Contributors: masecho