From 681b50060e01ee05457b5c64e3225c3dea2d1263 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 8 Oct 2015 13:52:21 -0400 Subject: [PATCH] Add shopt globs to include hidden files --- scripts/website_push_docs.sh | 4 +++- scripts/website_push_www.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/website_push_docs.sh b/scripts/website_push_docs.sh index 0f7674252..99ee08705 100755 --- a/scripts/website_push_docs.sh +++ b/scripts/website_push_docs.sh @@ -16,7 +16,8 @@ while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )" # Copy into tmpdir -cp -R $DIR/website/docs/ $DEPLOY/ +shopt -s dotglob +cp -R $DIR/website/docs/* $DEPLOY/ # Change into that directory cd $DEPLOY @@ -25,6 +26,7 @@ cd $DEPLOY touch .gitignore echo ".sass-cache" >> .gitignore echo "build" >> .gitignore +echo "vendor" >> .gitignore # Add everything git init . diff --git a/scripts/website_push_www.sh b/scripts/website_push_www.sh index ad74a7b63..f7f2c6ce4 100755 --- a/scripts/website_push_www.sh +++ b/scripts/website_push_www.sh @@ -16,7 +16,8 @@ while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )" # Copy into tmpdir -cp -R $DIR/website/www/ $DEPLOY/ +shopt -s dotglob +cp -R $DIR/website/www/* $DEPLOY/ # Change into that directory cd $DEPLOY @@ -25,6 +26,7 @@ cd $DEPLOY touch .gitignore echo ".sass-cache" >> .gitignore echo "build" >> .gitignore +echo "vendor" >> .gitignore # Add everything git init .