fix: ignore diff on url

main
sudo pacman -Syu 2022-12-01 11:08:56 +07:00
parent a18b4d905c
commit 391d54779f
No known key found for this signature in database
GPG Key ID: D6CB5C6C567C47B0
1 changed files with 4 additions and 0 deletions

View File

@ -108,6 +108,10 @@ func (c *configReal) Clean() error {
func (c *configReal) Diff() error {
for _, app := range c.Apps {
for _, p := range app.Paths {
if p.External == "" {
continue
}
if err := diff.Diff(p.Internal, p.External); err != nil {
return fmt.Errorf("failed to compare %s with %s: %w", p.Internal, p.External, err)
}