We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e45bbfe commit 09f47abCopy full SHA for 09f47ab
deploy.sh
@@ -1,5 +1,5 @@
1
#!/usr/bin/env bash
2
-set -e #abort if any command fails
+set -o errexit #abort if any command fails
3
4
deploy_directory=dist
5
deploy_branch=gh-pages
@@ -42,7 +42,10 @@ git --work-tree "$deploy_directory" reset --mixed --quiet
42
43
git --work-tree "$deploy_directory" add --all
44
45
-diff=`git --work-tree "$deploy_directory" diff --exit-code --quiet HEAD`
+set +o errexit
46
+git --work-tree "$deploy_directory" diff --exit-code --quiet HEAD
47
+diff=$?
48
+set -o errexit
49
case $diff in
50
0) echo No changes to files in $deploy_directory. Skipping commit.;;
51
1)
0 commit comments