no need for push/popd in sub-shell

This commit is contained in:
Bruno Windels 2018-07-27 14:10:19 +02:00
parent 96374f4e54
commit 5e1517eb4d
6 changed files with 10 additions and 21 deletions

View file

@ -6,15 +6,12 @@ if [[ -d $BASE_DIR/riot-web ]]; then
exit
fi
pushd $BASE_DIR > /dev/null
cd $BASE_DIR
curl -L https://github.com/vector-im/riot-web/archive/${RIOT_BRANCH}.zip --output riot.zip
unzip riot.zip
rm riot.zip
mv riot-web-${RIOT_BRANCH} riot-web
cp config-template/config.json riot-web/
pushd riot-web > /dev/null
cd riot-web
npm install
npm run build
popd > /dev/null
popd > /dev/null