summaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-10-02 07:49:36 -0700
committerelijah <elijah@riseup.net>2014-10-02 07:49:36 -0700
commita5503a1bdd7668cbd6ee5bd191f9c82d65184030 (patch)
tree0d6e64c5d592779d2db0a7f61d4fa14a71a3ee41 /lib/leap_cli/commands
parent37ce20b877628adb3eadbcfd29f560ba75f8dd14 (diff)
fixed bug that prevented compile
Diffstat (limited to 'lib/leap_cli/commands')
-rw-r--r--lib/leap_cli/commands/compile.rb2
1 files changed, 1 insertions, 1 deletions
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)