在 main.py 中为 'ud' 命令添加对 'update' 命令的支持

This commit is contained in:
2025-04-08 22:53:42 +08:00
Unverified
parent f000b1ce69
commit 215e7981f0

View File

@@ -80,7 +80,7 @@ def pseudo_zsh():
if args[0] == 'ssh1':
subprocess.run(['ssh','root@10.147.17.161'])
if args[0] == 'ud':
if args[0] == 'ud' or args[0] == 'update':
try:
print("Updating code...")
subprocess.run(['git', 'pull'])