Created
July 1, 2019 07:56
-
-
Save wxingheng/38ff609de802a792ea10b831b93145e8 to your computer and use it in GitHub Desktop.
bash sh .sh 常用方法
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**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/. [email protected]:/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