mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-09 22:25:59 -05:00
Better bash
This commit is contained in:
@@ -1,16 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Generate package docs in the working directory
|
||||
Rscript -e "devtools::document(roclets=c('rd', 'collate', 'namespace'))"
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo "Error generating Roxygen docs."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# This command will return a zero exit code if there are uncommitted changes
|
||||
test -n "$(git status --porcelain)"
|
||||
if [ $? -eq 0 ]
|
||||
if [ -n "$(git status --porcelain)" ]
|
||||
then
|
||||
git status --porcelain
|
||||
echo "Please generate the Roxygen documentation and commit the updates."
|
||||
|
||||
@@ -1,16 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Run JS build process
|
||||
(cd "$(dirname "$0")" && yarn && yarn build)
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo "Error generating JavaScript assets with yarn."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# This command will return a zero exit code if there are uncommitted changes
|
||||
test -n "$(git status --porcelain)"
|
||||
if [ $? -eq 0 ]
|
||||
if [ -n "$(git status --porcelain)" ]
|
||||
then
|
||||
git status --porcelain
|
||||
echo "Please rebuild the JavaScript and commit the changes."
|
||||
|
||||
Reference in New Issue
Block a user