Skip to content

Commit

Permalink
Surround variables with curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshiyukiMineo committed Nov 7, 2018
1 parent 6a3d7ac commit 6b20752
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ruby/build.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#!/bin/sh

V8EVAL_ROOT=`cd $(dirname $0)/.. && pwd`
V8EVAL_ROOT=`cd $(dirname ${0})/.. && pwd`

build() {
cd $V8EVAL_ROOT/ruby
cd ${V8EVAL_ROOT}/ruby
rake prepare_build
rake build_ext
}

install() {
cd $V8EVAL_ROOT
cd ${V8EVAL_ROOT}
gem build v8eval.gemspec
gem install v8eval-*.gem
}

docs() {
cd $V8EVAL_ROOT/ruby
cd ${V8EVAL_ROOT}/ruby
rm -rf ./doc
mkdir ./doc
yardoc --main ../README.md lib/v8eval.rb
Expand All @@ -25,15 +25,15 @@ test() {
build

gem install bundler -v 1.14.5
cd $V8EVAL_ROOT/ruby
cd ${V8EVAL_ROOT}/ruby
bundle install

rspec --init
rspec
}

# dispatch subcommand
SUBCOMMAND="$1";
SUBCOMMAND="${1}";
case "${SUBCOMMAND}" in
"" ) build ;;
"install" ) install ;;
Expand Down

0 comments on commit 6b20752

Please sign in to comment.