OpenCode Deployer commited on
Commit
a98f8c7
·
1 Parent(s): 6cec5c8
Files changed (1) hide show
  1. push.sh +21 -1
push.sh CHANGED
@@ -1,3 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  git add .
2
  git commit -m "update"
3
- git push
 
 
1
+ #!/bin/bash
2
+
3
+ OS_TYPE=$(uname -s)
4
+
5
+ case "$OS_TYPE" in
6
+ Darwin*)
7
+ echo "当前系统是 macOS。"
8
+ ssh-add ~/.ssh/id_ed25519_airsltd_mac
9
+ ;;
10
+ Linux*)
11
+ echo "当前系统是 Linux。"
12
+ ;;
13
+ CYGWIN*|MINGW*|MSYS*)
14
+ echo "当前系统是 Windows。"
15
+ ;;
16
+ *)
17
+ echo "未知的系统: $OS_TYPE"
18
+ ;;
19
+ esac
20
  git add .
21
  git commit -m "update"
22
+ git push
23
+