bin/build in bin_install-0.0.30 vs bin/build in bin_install-0.0.31
- old
+ new
@@ -2,10 +2,14 @@
require 'bundler/setup'
require 'awesome_print'
require 'bin_install'
-puts "Building bin_install #{BinInstall::VERSION}.".white
-system('git pull origin master')
-system('gem build bin_install.gemspec')
-system("gem install bin_install-#{BinInstall::VERSION}.gem")
-puts 'Done.'.green
+APP_ROOT = File.expand_path('..', __dir__)
+
+Dir.chdir(APP_ROOT) do
+ puts "Building bin_install #{BinInstall::VERSION}.".white
+ system('git pull origin master')
+ system('gem build bin_install.gemspec')
+ system("gem install bin_install-#{BinInstall::VERSION}.gem")
+ puts 'Done.'.green
+end