File size: 368 Bytes
ec2e14a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

OS_TYPE=$(uname -s)

case "$OS_TYPE" in
  Darwin*)
    echo "当前系统是 macOS。"
    ssh-add ~/.ssh/id_ed25519_airsltd_mac
    ;;
  Linux*)
    echo "当前系统是 Linux。"
    ;;
  CYGWIN*|MINGW*|MSYS*)
    echo "当前系统是 Windows。"
    ;;
  *)
    echo "未知的系统: $OS_TYPE"
    ;;
esac
git add .
git commit -m "update"
git push