Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit 74452a8 added instructions to compare builds, but it had a few bugs: - Did not work on MacOS due to differences between BSD `sed` (Mac) and GNU `sed` (Linux) - To edit in-place without a backup file, GNU sed uses `-i` (no parameter) and BSD sed uses `-i ''`. There is no cross-platform way to do this. So instead, just use a backup file (`-i.bak`) then delete it afterward. - `\+` is a GNU extension to basic regexp. Switch to extended regexp (`-r`) which works on GNU sed and modern BSD sed. - Incorrectly edited all dates instead of just the first. Only the first is the build timestamp (`site.time` in Jekyll). The rest are deterministic and should not be scrubbed. Use the `1` sed range to fix. Signed-off-by: Mark Lodato <[email protected]>
- Loading branch information