]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
fixed bug that prevented compile
authorelijah <elijah@riseup.net>
Thu, 2 Oct 2014 14:49:36 +0000 (07:49 -0700)
committerelijah <elijah@riseup.net>
Thu, 2 Oct 2014 14:49:36 +0000 (07:49 -0700)
lib/leap_cli/commands/compile.rb

index 13fa9ac4faaf4249f48a2de8edd20fd2bfec3c42..644ce2a7bfddc2041763cd3300b59cc4d534579e 100644 (file)
@@ -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)