forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce noise by replacing the repeated `&&` chain with use of `set -e`, which will cause the script to bail on the first command that exits with a non-zero exit code.
- Loading branch information
Showing
1 changed file
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Start in website/ even if run from root directory | ||
cd "$(dirname "$0")" | ||
|
||
cd ../../flux-gh-pages && \ | ||
git checkout -- . && \ | ||
git clean -dfx && \ | ||
git fetch && \ | ||
git rebase && \ | ||
rm -Rf * && \ | ||
cd ../flux/website && \ | ||
node server/generate.js && \ | ||
cp -R build/flux/* ../../flux-gh-pages/ && \ | ||
rm -Rf build/ && \ | ||
cd ../../flux-gh-pages && \ | ||
git add --all && \ | ||
git commit -m "update website" && \ | ||
git push && \ | ||
cd ../../flux-gh-pages | ||
git checkout -- . | ||
git clean -dfx | ||
git fetch | ||
git rebase | ||
rm -Rf * | ||
cd ../flux/website | ||
node server/generate.js | ||
cp -R build/flux/* ../../flux-gh-pages/ | ||
rm -Rf build/ | ||
cd ../../flux-gh-pages | ||
git add --all | ||
git commit -m "update website" | ||
git push | ||
cd ../flux/website |