lib/alfred_git.rb in alfred_git-0.3.1 vs lib/alfred_git.rb in alfred_git-0.3.2

- old
+ new

@@ -9,10 +9,10 @@ include AlfredGitVersion def initialize set_app_directory # If there's just one, it's the current version. - restore_settings if Dir.glob("#{@app_directory.chomp('/alfred_git-#{VERSION}')}/alfred_git*").length > 1 && + restore_settings if Dir.glob("#{@app_directory.chomp("/alfred_git-#{VERSION}")}/alfred_git*").length > 1 && !(File.exists?("#{@app_directory}/lib/config.yaml")) config unless File.exists?("#{@app_directory}/lib/config.yaml") config_yaml = YAML.load_file("#{@app_directory}/lib/config.yaml") @repo_locations = config_yaml['repos'] \ No newline at end of file