From a5503a1bdd7668cbd6ee5bd191f9c82d65184030 Mon Sep 17 00:00:00 2001 From: elijah Date: Thu, 2 Oct 2014 07:49:36 -0700 Subject: fixed bug that prevented compile --- lib/leap_cli/commands/compile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/leap_cli/commands/compile.rb b/lib/leap_cli/commands/compile.rb index 13fa9ac..644ce2a 100644 --- a/lib/leap_cli/commands/compile.rb +++ b/lib/leap_cli/commands/compile.rb @@ -9,7 +9,7 @@ module LeapCli c.command :all do |all| all.action do |global_options,options,args| environment = args.first - if !LeapCli.leapfile.environment.nil? && environment != LeapCli.leapfile.environment + if !LeapCli.leapfile.environment.nil? && !environment.nil? && environment != LeapCli.leapfile.environment bail! "You cannot specify an ENVIRONMENT argument while the environment is pinned." end if environment && manager.environment_names.include?(environment) -- cgit v1.2.3