From 0f9dd48eea7bde672ff81340fa953d93f859b114 Mon Sep 17 00:00:00 2001 From: Thomas Hallock Date: Thu, 1 Apr 2021 14:09:32 -0500 Subject: [PATCH] `set -e` added [`set -e`](https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html) at the top of the script and removed ` &&` suffix from the end of every line. --- publish-docs.sh | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/publish-docs.sh b/publish-docs.sh index 2f523c902..7b505a4fe 100755 --- a/publish-docs.sh +++ b/publish-docs.sh @@ -1,13 +1,14 @@ #!/bin/bash -cd website && -npm run build && -rm -rf /tmp/dist-vis && -mv dist /tmp/dist-vis && -git checkout gh-pages && -rm -rf dist && -mv /tmp/dist-vis dist && -mv dist/index.html .. && -cd .. && -git add . && -git commit -m 'Upgrade docs' && +set -e +cd website +npm run build +rm -rf /tmp/dist-vis +mv dist /tmp/dist-vis +git checkout gh-pages +rm -rf dist +mv /tmp/dist-vis dist +mv dist/index.html .. +cd .. +git add . +git commit -m 'Upgrade docs' git push && git checkout master