mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Build: Push Function Include Down Into Sub-Shell
Push RVM function include down into subshell to allow build scripts to kill all sub-processes. [skip ci] Closes #941
This commit is contained in:
parent
0216bf3f64
commit
1939eb163c
2 changed files with 4 additions and 4 deletions
|
@ -5,8 +5,6 @@
|
|||
|
||||
PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin
|
||||
|
||||
source /etc/profile.d/rvm.sh
|
||||
|
||||
# Set variables and create temporary directories
|
||||
LANGS=('ar' 'bg' 'bn' 'ca' 'cs' 'da' 'de' 'el' 'es' 'fa' 'fr' 'hi' 'hr' 'hu' 'id' 'it' 'ja' 'ko' 'lv' 'ml' 'nl' 'no' 'pl' 'pt_BR' 'ro' 'ru' 'sl' 'sr' 'sv' 'tr' 'uk' 'zh_CN' 'zh_TW')
|
||||
WORKDIR=`mktemp -d`
|
||||
|
@ -92,6 +90,7 @@ done
|
|||
|
||||
# Build website in a child process
|
||||
(
|
||||
source /etc/profile.d/rvm.sh
|
||||
cd $WORKDIR
|
||||
bundle install
|
||||
ENABLED_PLUGINS='alerts redirects releases' make build && touch "$WORKDIR/_builddone" || touch "$WORKDIR/_buildfail"
|
||||
|
@ -111,6 +110,7 @@ do
|
|||
if [ -e "$WORKDIR/_builddone" ]; then
|
||||
cd $LIVEDIR
|
||||
rsync --delete -zrt --exclude '/.git' $WORKDIR/_site/ $DESTDIR/
|
||||
echo "Upload done; terminating script"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue