Skip to content

Commit

Permalink
add set -e to bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahs committed Dec 3, 2020
1 parent 44ccfc2 commit 522988e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/early-access/clone-locally
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
#
# [end-readme]

set -e

# Go up a directory
pushd .. > /dev/null

if [ -d "docs-early-access" ]; then
echo "A 'docs-early-access' directory already exists! Try script/early-access/feature-branch.js."
echo "A 'docs-early-access' directory already exists!"
popd > /dev/null
exit 0
fi
Expand Down

0 comments on commit 522988e

Please sign in to comment.