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 605ea19 commit e0caac7Copy full SHA for e0caac7
deploy.sh
@@ -24,11 +24,6 @@ while : ; do
24
fi
25
done
26
27
-if [ ! -d "$deploy_directory" ]; then
28
- echo "Deploy directory '$deploy_directory' does not exist. Aborting." >&2
29
- exit 1
30
-fi
31
-
32
#echo expanded commands as they are executed (for debugging)
33
function enable_expanded_output {
34
if [ $verbose ]; then
@@ -87,6 +82,11 @@ if ! git diff --exit-code --quiet --cached; then
87
82
exit 1
88
83
89
84
85
+if [ ! -d "$deploy_directory" ]; then
86
+ echo "Deploy directory '$deploy_directory' does not exist. Aborting." >&2
+ exit 1
+fi
+
90
disable_expanded_output
91
git fetch --force $repo $deploy_branch:$deploy_branch
92
enable_expanded_output
0 commit comments