Skip to content

Commit

Permalink
Fail early
Browse files Browse the repository at this point in the history
Usually bash does not fail when a command fails, the `set -e` will do so. `set -u` will make missing variables errors as well.
  • Loading branch information
martin-ueding committed Feb 3, 2019
1 parent c7c807b commit 2337784
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install
@@ -1,4 +1,8 @@
#!/bin/bash

set -e
set -u

Rscript -e 'Rcpp::compileAttributes()'
Rscript -e 'devtools::document()'
R CMD INSTALL .

0 comments on commit 2337784

Please sign in to comment.