Skip to content

Commit 787b596

Browse files
authored
Merge pull request #192 from RyanofWoods/ryanofwoods/fix-sandbox-default-solidus-branch
Fix sandbox default solidus branch
2 parents 6270b0b + 611a98f commit 787b596

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

  • lib/solidus_dev_support/templates/extension/bin

lib/solidus_dev_support/templates/extension/bin/sandbox.tt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
set -e
4-
if [ ! -z $DEBUG ]
4+
if [ -n "$DEBUG" ]
55
then
66
set -x
77
fi
@@ -28,16 +28,14 @@ sqlite3|sqlite)
2828
esac
2929
echo "~~> Using $RAILSDB as the database engine"
3030

31-
if [ -n $SOLIDUS_BRANCH ]
31+
if [ -z "$SOLIDUS_BRANCH" ]
3232
then
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"
3735
fi
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" ]
4139
then
4240
echo "~~> Use 'export SOLIDUS_FRONTEND=[solidus_frontend|solidus_starter_frontend]' to control the Solidus frontend"
4341
SOLIDUS_FRONTEND="solidus_frontend"
@@ -68,7 +66,7 @@ fi
6866

6967
cd ./sandbox
7068
cat <<RUBY >> Gemfile
71-
gem 'solidus', github: 'solidusio/solidus', branch: '$BRANCH'
69+
gem 'solidus', github: 'solidusio/solidus', branch: '$SOLIDUS_BRANCH'
7270
gem 'rails-i18n'
7371
gem 'solidus_i18n'
7472

0 commit comments

Comments
 (0)