1
0
Fork 0
scripts/jekyll_clone_repo.sh

14 lines
280 B
Bash
Executable file

#!/bin/bash
set -o nounset
set -o pipefail
cloned_dir="$1"
destination_dir="$2"
function finish {
rm -rf "$cloned_dir"
}
trap finish EXIT
/usr/local/bin/jekyll build --source "$cloned_dir" --destination "$destination_dir" 2>&1 |& systemd-cat -t "jekyll-cloner" -p "info"