From 94aa9853bb6bf70b95e96575fbcc42b6c10b2d5a Mon Sep 17 00:00:00 2001 From: Dimitar Trendafilov Date: Sat, 15 Sep 2018 18:26:04 +0300 Subject: Fixed publishing on non-Windows - changed the line-endings to UNIX --- website/publish.sh | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/website/publish.sh b/website/publish.sh index 5959fe9..95fc770 100644 --- a/website/publish.sh +++ b/website/publish.sh @@ -1,23 +1,23 @@ -#!/usr/bin/sh - -set -e - -commit=`git log -n1 --format=%H` - - -# Be sure that we are up-to-date -pushd public -git pull --ff-only -popd - -rm -rf public/* - -hugo --minify - -pushd public - -git add --all . -git commit -m "Published from $commit" -git push - -popd +#!/usr/bin/sh + +set -e + +commit=`git log -n1 --format=%H` + + +# Be sure that we are up-to-date +pushd public +git pull --ff-only +popd + +rm -rf public/* + +hugo --minify + +pushd public + +git add --all . +git commit -m "Published from $commit" +git push + +popd -- cgit v1.3.1-23-gd82d