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