File tree Expand file tree Collapse file tree
lib/solidus_dev_support/templates/extension/bin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33set -e
4- if [ ! -z $DEBUG ]
4+ if [ -n " $DEBUG " ]
55then
66 set -x
77fi
@@ -28,16 +28,14 @@ sqlite3|sqlite)
2828esac
2929echo " ~~> Using $RAILSDB as the database engine"
3030
31- if [ -n $SOLIDUS_BRANCH ]
31+ if [ -z " $SOLIDUS_BRANCH " ]
3232then
33- BRANCH=$SOLIDUS_BRANCH
34- else
3533 echo " ~~> Use 'export SOLIDUS_BRANCH=[master|v3.2|...]' to control the Solidus branch"
36- BRANCH =" master"
34+ SOLIDUS_BRANCH =" master"
3735fi
38- echo " ~~> Using branch $BRANCH of solidus"
36+ echo " ~~> Using branch $SOLIDUS_BRANCH of solidus"
3937
40- if [ -z $SOLIDUS_FRONTEND ]
38+ if [ -z " $SOLIDUS_FRONTEND " ]
4139then
4240 echo " ~~> Use 'export SOLIDUS_FRONTEND=[solidus_frontend|solidus_starter_frontend]' to control the Solidus frontend"
4341 SOLIDUS_FRONTEND=" solidus_frontend"
6866
6967cd ./sandbox
7068cat << RUBY >> Gemfile
71- gem ' solidus' , github: ' solidusio/solidus' , branch: ' $BRANCH '
69+ gem ' solidus' , github: ' solidusio/solidus' , branch: ' $SOLIDUS_BRANCH '
7270gem ' rails-i18n'
7371gem ' solidus_i18n'
7472
You can’t perform that action at this time.
0 commit comments