Skip to content

Commit

Permalink
Set -e in some bash scripts
Browse files Browse the repository at this point in the history
Summary: These scripts should fail on encountering an error.

Test Plan: N/A

Reviewers: philkuz, zasgar, michelle

Reviewed By: michelle

Differential Revision: https://phab.corp.pixielabs.ai/D8475

GitOrigin-RevId: d22eeb1
  • Loading branch information
vihangm authored and copybaranaut committed Apr 29, 2021
1 parent a5ae0ae commit 45adb6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/deploy_cloud_prereqs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#
# SPDX-License-Identifier: Apache-2.0

set -e

if [ "$#" -ne 2 ]; then
echo "This script requires exactly two arguments: <namespace> <secret type : dev, prod, etc.>"
exit 1
Expand Down
2 changes: 2 additions & 0 deletions scripts/setup_dev_k8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#
# SPDX-License-Identifier: Apache-2.0

set -e

vm_driver=kvm2
memory=8192
cpus=8
Expand Down

0 comments on commit 45adb6c

Please sign in to comment.