You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Processes a template_markdown_file markdown file, replacing placeholders like "<!-- include:intro.md -->" with the contents of the specified markdown files. The files to include needs to be in the "includes" subdirectory.
4
+
5
+
# Fail on any error ("-e" = exit on first error, "-o pipefail" exist on errors within piped commands)
6
+
set -o errexit -o pipefail
7
+
8
+
## Get this "scripts" directory if not already set
9
+
# Even if $BASH_SOURCE is made for Bourne-like shells it is also supported by others and therefore here the preferred solution.
10
+
# CDPATH reduces the scope of the cd command to potentially prevent unintended directory changes.
11
+
# This way non-standard tools like readlink aren't needed.
12
+
MARKDOWN_SCRIPTS_DIR=${MARKDOWN_SCRIPTS_DIR:-$( CDPATH=. cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P )}# Repository directory containing the shell scripts
0 commit comments