claw-template / push.sh
airsltd's picture
update
2ce5e59
raw
history blame contribute delete
439 Bytes
#!/bin/bash
OS_TYPE=$(uname -s)
case "$OS_TYPE" in
Darwin*)
echo "当前系统是 macOS。"
ssh-add ~/.ssh/id_ed25519_airsltd_mac
;;
Linux*)
echo "当前系统是 Linux。"
eval $(ssh-agent)
ssh-add ~/.ssh/id_ed25519_homepc_airsltd_ubt
;;
CYGWIN*|MINGW*|MSYS*)
echo "当前系统是 Windows。"
;;
*)
echo "未知的系统: $OS_TYPE"
;;
esac
git add .
git commit -m "update"
git push