Update checks the OS platform before changing directories. Also added message when switching to lookup mode.

This commit is contained in:
dan
2021-06-12 14:27:35 -04:00
parent bd149dc7e5
commit 164326f56e

View File

@@ -38,10 +38,13 @@ while True:
elif command == 'CARD':
Card = 1
elif command == 'UPDATE':
os.system('cd ~/libraryClient')
os.system('git pull')
if os.name != 'nt':
os.system('cd ~/libraryClient')
else:
os.system('git pull')
elif command == 'LU':
Mode=3
print('Mode lookup')
elif command == '':
pass
else: