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
#!/usr/bin/env bash | |
# Requires Bash 4.0 or newer. | |
# This script updates the 'updated' field in the front matter of modified .md | |
# files setting it to their last modified date. | |
# Function to exit the script with an error message. | |
function error_exit() { | |
echo "ERROR: $1" >&2 | |
exit "${2:-1}" |
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
#!/usr/bin/env bash | |
# Requires Bash 4.0 or newer. | |
# This script updates the 'updated' field in the front matter of modified .md | |
# files setting it to their last modified date. | |
# It also compresses PNG files with either oxipng or optipng if available. | |
# Function to exit the script with an error message. | |
function error_exit() { | |
echo "ERROR: $1" >&2 |