Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added fix: expand path ~

  • Loading branch information...
commit 9e1599a49c657a2d5aec7e71a0fa51815866890e 1 parent 6e678bb
@maxmeyer maxmeyer authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/consular/cli.rb
View
3  lib/consular/cli.rb
@@ -251,7 +251,8 @@ def open_in_editor(path, editor = nil)
#
# @api private
def message_unless_file(file, &blk)
- if File.exists?(file)
+ binding.pry
+ if File.exists?(File.expand_path(file))
blk.call
else
say "#{file} does not exist. Try running `consular edit` first.", :yellow
Please sign in to comment.
Something went wrong with that request. Please try again.