aboutsummaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-10-01 15:20:55 +0900
committerOphestra <cat@gensokyo.uk>2026-10-01 15:20:55 +0900
commitb0fa39b560d2caaaf0708c0828ae191311aee971 (patch)
treefeef3f6d744441b301bd78c8f147d2be3ea143ad /pkg
parentd8acd8a29aca25055244b9e28a8ad520e82a41cd (diff)
pkg: drop EEXIST linking substitute status
This can happen under some edge cases and is expected. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/pkg.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/pkg.go b/pkg/pkg.go
index c2fe42fe..3515f99f 100644
--- a/pkg/pkg.go
+++ b/pkg/pkg.go
@@ -364,6 +364,9 @@ func (f *FContext) linkSubstitute(ids, substitutes string) (err error) {
if err == nil {
f.statusSPath = statusS
}
+ if errors.Is(err, os.ErrExist) {
+ err = nil
+ }
return
}