Merge pull request #1072 from bestlong/fix-travis-ci-hugo-job-failed

fix travis ci hugo job get "cannot create directory" error.
This commit is contained in:
Yu-Lung Shao (Allen) 2017-07-28 00:23:18 +08:00 committed by GitHub
commit 82219ededb

View File

@ -26,7 +26,7 @@ if [ -n "${HUGO_VERSION}" ]; then
# Download hugo binary
curl -L https://github.com/spf13/hugo/releases/download/v$HUGO_VERSION/$HUGO_PACKAGE.tar.gz | tar xz
mkdir $HOME/bin
mkdir -p $HOME/bin
mv ./${HUGO_BIN}/${HUGO_BIN} $HOME/bin/hugo
# Remove existing docs