This commit is contained in:
Marc Beninca 2022-03-13 19:55:23 +01:00
parent 14fc25100e
commit 8b442a0363
2 changed files with 2 additions and 6 deletions

View file

@ -5,14 +5,10 @@ SETTINGS='settings.py'
function main {
local file="$(realpath "${BASH_SOURCE[0]}")"
local root="$(dirname "${file}")"
local args=()
case "${1}" in
'') args+='--print-settings' ;;
esac
cd "${root}"
pelican \
--settings "${SETTINGS}" \
"${args[@]}"
"${@}"
}
main "${@}"