Created
April 1, 2020 15:56
-
-
Save marcelkornblum/d071b508381c2326290494eff9d280f2 to your computer and use it in GitHub Desktop.
BASH script to sync WSL clock with host. You run into API auth errors when they get out of sync due to the distro sleeping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Syncs the WSL clock with the machine clock - they get out of sync after suspension | |
sudo hwclock -s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment