lib/itamae/resource/link.rb in itamae-1.0.0.beta20 vs lib/itamae/resource/link.rb in itamae-1.0.0.beta21

- old
+ new

@@ -13,10 +13,10 @@ @attributes[:exist?] = true end end def set_current_attributes - @current_attributes[:exist?] = (run_command(["test", "-L", link]).exit_status == 0) + @current_attributes[:exist?] = (run_command(["test", "-L", link], error: false).exit_status == 0) if @current_attributes[:exist?] @current_attributes[:to] = run_command(["readlink", "-f", link]).stdout.strip end end