Merge pull request #6379 from mitchellh/sethvargo/shopt
Add shopt globs to include hidden files
This commit is contained in:
commit
be58cc0589
|
@ -16,7 +16,8 @@ while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
|
||||||
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
|
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
|
||||||
|
|
||||||
# Copy into tmpdir
|
# Copy into tmpdir
|
||||||
cp -R $DIR/website/docs/ $DEPLOY/
|
shopt -s dotglob
|
||||||
|
cp -R $DIR/website/docs/* $DEPLOY/
|
||||||
|
|
||||||
# Change into that directory
|
# Change into that directory
|
||||||
cd $DEPLOY
|
cd $DEPLOY
|
||||||
|
@ -25,6 +26,7 @@ cd $DEPLOY
|
||||||
touch .gitignore
|
touch .gitignore
|
||||||
echo ".sass-cache" >> .gitignore
|
echo ".sass-cache" >> .gitignore
|
||||||
echo "build" >> .gitignore
|
echo "build" >> .gitignore
|
||||||
|
echo "vendor" >> .gitignore
|
||||||
|
|
||||||
# Add everything
|
# Add everything
|
||||||
git init .
|
git init .
|
||||||
|
|
|
@ -16,7 +16,8 @@ while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
|
||||||
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
|
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
|
||||||
|
|
||||||
# Copy into tmpdir
|
# Copy into tmpdir
|
||||||
cp -R $DIR/website/www/ $DEPLOY/
|
shopt -s dotglob
|
||||||
|
cp -R $DIR/website/www/* $DEPLOY/
|
||||||
|
|
||||||
# Change into that directory
|
# Change into that directory
|
||||||
cd $DEPLOY
|
cd $DEPLOY
|
||||||
|
@ -25,6 +26,7 @@ cd $DEPLOY
|
||||||
touch .gitignore
|
touch .gitignore
|
||||||
echo ".sass-cache" >> .gitignore
|
echo ".sass-cache" >> .gitignore
|
||||||
echo "build" >> .gitignore
|
echo "build" >> .gitignore
|
||||||
|
echo "vendor" >> .gitignore
|
||||||
|
|
||||||
# Add everything
|
# Add everything
|
||||||
git init .
|
git init .
|
||||||
|
|
Loading…
Reference in New Issue