We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8f0281 commit e96cd6bCopy full SHA for e96cd6b
deploy.sh
@@ -48,11 +48,11 @@ if git show-ref --verify --quiet refs/heads/gh-pages; then
48
git checkout gh-pages
49
else
50
git checkout --orphan gh-pages
51
- git rm -rf .
+ git rm -rf . -- ':!deploy.sh'
52
fi
53
54
-# Remove old files (except .git)
55
-find . -maxdepth 1 ! -name '.git' ! -name '.' ! -name '..' -exec rm -rf {} \;
+# Remove old files (except .git and deploy.sh)
+find . -maxdepth 1 ! -name '.git' ! -name 'deploy.sh' ! -name '.' ! -name '..' -exec rm -rf {} \;
56
57
# Copy new site content
58
cp -r "$TEMP_DIR"/* .
0 commit comments