aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/build.sh
blob: 249700bf4ca6fa8df37d9bf0eb88fcafe8bfbd97 (plain) (tree)



















                                                  
#!/usr/bin/env bash

set -o errexit -o nounset -o pipefail

script_name="$( basename -- "${BASH_SOURCE[0]}" )"

case "$#" in
    0) ;;
    1)
        dest_dir="$1"
        ;;
    *)
        echo "usage: $script_name [DEST_DIR]" >&2
        exit 1
esac

bundle exec jekyll build                  \
    --config _config.yml,_config_dev.yml  \
    ${dest_dir+--destination "$dest_dir"} \
    --drafts