deploy/jekyll

14 lines
201 B
Bash
Executable File

#!/usr/local/bin/bash
# $1 = source
# $2 = destination
# $3 = temp dir
rm -rf "$3"
mkdir -p "$2" "$3"
git clone "$1" "$3"
jekyll build --source "$3" --destination "$2"
chmod -R g+w "$2"
rm -rf "$3"