Ability to set FRONTEND_COMMIT when running install_frontend.sh

pull/325/merge
Rick Carlino 2017-05-31 15:23:15 -05:00
parent 03342bac37
commit c10edb4349
1 changed files with 8 additions and 1 deletions

View File

@ -4,7 +4,14 @@ CURRENT_DIR=$(pwd)
# Clone into a temp folder...
rm -rf /tmp/farmbot_frontend
mkdir /tmp/farmbot_frontend
git clone https://github.com/farmbot/farmbot-web-frontend.git /tmp/farmbot_frontend
if [ "$FRONTEND_COMMIT" ]
then
git reset --hard $FRONTEND_COMMIT
fi
cd /tmp/farmbot_frontend
if [ "$NPM_ADDON" ]; then
echo "NPM ADD ON DETECTED... INSTALLING"
@ -19,4 +26,4 @@ cd $CURRENT_DIR
# Move it over to the rails /public directory and install deps
mkdir public/ -p
cp -R /tmp/farmbot_frontend/public/* public/
cp -R /tmp/farmbot_frontend/public/* public/