Skip to content

Commit

Permalink
set parameter on bash script so it can stop as soon there is an error
Browse files Browse the repository at this point in the history
Signed-off-by: Augustin Husson <[email protected]>
  • Loading branch information
Nexucis committed Mar 5, 2021
1 parent f2bd165 commit 570d57c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

set -ex

lezer-generator src/promql.grammar -o src/parser

cat src/parser.terms.js >> src/parser.js
Expand Down
2 changes: 2 additions & 0 deletions generate-types.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

set -ex

mkdir -p ./dist
indexFile='./dist/index.d.ts'
if [[ -f ${indexFile} ]]; then
Expand Down

0 comments on commit 570d57c

Please sign in to comment.