github.com/10XDev/rclone@v1.52.3-0.20200626220027-16af9ab76b2a/backend/sharefile/update-timezone.sh (about) 1 #!/bin/bash 2 3 set -e 4 5 # Extract just the America/New_York timezone from 6 tzinfo=$(go env GOROOT)/lib/time/zoneinfo.zip 7 8 rm -rf tzdata 9 mkdir tzdata 10 cd tzdata 11 unzip ${tzinfo} America/New_York 12 13 cd .. 14 # Make the embedded assets 15 go run generate_tzdata.go 16 17 # tidy up 18 rm -rf tzdata