Skip to content

Instantly share code, notes, and snippets.

@wxingheng
Created July 1, 2019 07:56
Show Gist options
  • Save wxingheng/38ff609de802a792ea10b831b93145e8 to your computer and use it in GitHub Desktop.
Save wxingheng/38ff609de802a792ea10b831b93145e8 to your computer and use it in GitHub Desktop.
bash sh .sh 常用方法
**merge.sh**
```language
#/usr/bin/env sh
cp -r ./cordova/platforms/android/app/build/outputs/apk/debug/app-debug.apk ./build/hoslink-screen.apk
```
**update.sh**
```language
#!/usr/bin/expect -f
set timeout -1
set password PAsscloud
spawn scp -r ./build/. passcloud@192.168.110.75:/nginx/html/fed/hoslink-screen-web/.
expect "*assword:*"
send "$password\r"
interact
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment