mirror of
https://github.com/rclone/rclone.git
synced 2024-12-22 23:22:08 +01:00
aed77a8fb2
The latter is more portable, while the former only works on systems where /bin/bash exists (or is symlinked appropriately).
19 lines
281 B
Bash
Executable File
19 lines
281 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
# Extract just the America/New_York timezone from
|
|
tzinfo=$(go env GOROOT)/lib/time/zoneinfo.zip
|
|
|
|
rm -rf tzdata
|
|
mkdir tzdata
|
|
cd tzdata
|
|
unzip ${tzinfo} America/New_York
|
|
|
|
cd ..
|
|
# Make the embedded assets
|
|
go run generate_tzdata.go
|
|
|
|
# tidy up
|
|
rm -rf tzdata
|