I made a batch file trying to setup rake/albacore environment on windows:
@echo off
echo Setting up rake environment for building
echo Installing Bundler
gem install bundler
echo Bundle Installing gems
bundle install
When I run this batch file (either double click or run inside a cmd window), only the first gem command is executed. The 'bundle install' is never called. Here is the output:
C:\>InstallGems.bat
Setting up rake environment for building
Installing Bundler
Successfully installed bundler-1.2.1
1 gem installed
Installing ri documentation for bundler-1.2.1...
Installing RDoc documentation for bundler-1.2.1...
C:\>
I have added 'pause' after the first 'gem install' command and it seems the 'pause' is never executed either.
Any idea?
Ahh, I figured it out: just add 'call' before each command.
@echo off
echo Setting up rake environment for building
echo Installing Bundler
call gem install bundler
echo Bundle Installing gems
call bundle install
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With