This repository has been archived on 2023-02-03. You can view files and clone it, but cannot push or open issues or pull requests.
autonomic.zone/sbin/entrypoint.sh

28 lines
452 B
Bash
Executable File

#!/bin/bash
set -eu -o pipefail
# Fire up Jekyll with the right configuration
run_jekyll() {
set -eu
# shellcheck disable=SC2155
local args="--config $JEKYLL_CONFIG --host $JEKYLL_HOST --port $JEKYLL_PORT --trace --verbose"
if [[ $JEKYLL_ENV == "development" ]]; then
# shellcheck disable=SC2155
local args="${args} --incremental"
fi
bundle exec jekyll serve $args
}
# Main entrypoint
main() {
set -eu
run_jekyll
}
main