Skip to content

Commit e0caac7

Browse files
committed
don't check deploy_directory before setup
1 parent 605ea19 commit e0caac7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

deploy.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ while : ; do
2424
fi
2525
done
2626

27-
if [ ! -d "$deploy_directory" ]; then
28-
echo "Deploy directory '$deploy_directory' does not exist. Aborting." >&2
29-
exit 1
30-
fi
31-
3227
#echo expanded commands as they are executed (for debugging)
3328
function enable_expanded_output {
3429
if [ $verbose ]; then
@@ -87,6 +82,11 @@ if ! git diff --exit-code --quiet --cached; then
8782
exit 1
8883
fi
8984

85+
if [ ! -d "$deploy_directory" ]; then
86+
echo "Deploy directory '$deploy_directory' does not exist. Aborting." >&2
87+
exit 1
88+
fi
89+
9090
disable_expanded_output
9191
git fetch --force $repo $deploy_branch:$deploy_branch
9292
enable_expanded_output

0 commit comments

Comments
 (0)