feat: Adding option for docker users

This commit is contained in:
imtodor 2019-03-22 13:58:02 +02:00
Родитель 689788f26b
Коммит 596cb597bb
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -15,6 +15,10 @@ case $i in
CONFIG="${i#*=}" CONFIG="${i#*=}"
shift shift
;; ;;
-d=*|--docker=*)
DOCKER="${i#*=}"
shift
;;
--default) --default)
DEFAULT=YES DEFAULT=YES
shift shift
@ -28,6 +32,7 @@ done
# echo "INCLUDE = ${INCLUDE}" # echo "INCLUDE = ${INCLUDE}"
# echo "SERVE = ${SERVE}" # echo "SERVE = ${SERVE}"
# echo "SECOND CONFIG = ${CONFIG}" # echo "SECOND CONFIG = ${CONFIG}"
# echo "USING DOCKER = ${DOCKER}"
# exit # exit
config_file="_config.yml" config_file="_config.yml"
@ -51,6 +56,9 @@ echo "Using config_file: $config_file"
if [[ $SERVE == "true" ]];then if [[ $SERVE == "true" ]];then
bundle exec jekyll serve --config=$config_file bundle exec jekyll serve --config=$config_file
elif [[ $DOCKER == "true" ]]
then
sh start-docs.sh $tempconfig
else else
bundle exec jekyll build --config=$config_file bundle exec jekyll build --config=$config_file
fi fi