From 290e6fdaba75bb44c2e998d4bc86c4a8a3dd742b Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Wed, 11 Sep 2024 19:37:07 +0200 Subject: [PATCH] Now force forces creation --- instruction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instruction.go b/instruction.go index 0f14c49..5e0c1fe 100644 --- a/instruction.go +++ b/instruction.go @@ -64,7 +64,7 @@ func (instruction *LinkInstruction) RunAsync(status chan (error)) { return } - if AreSame(instruction.Source, instruction.Target) { + if !instruction.Force && AreSame(instruction.Source, instruction.Target) { status <- fmt.Errorf("source %s%s%s and target %s%s%s are the same, %snothing to do...%s", SourceColor, instruction.Source, DefaultColor, TargetColor, instruction.Target, DefaultColor, PathColor, DefaultColor) return }