From edaa699c20bce1dae9f7bc934e4192ce10bd87ab Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sun, 2 Feb 2025 21:19:47 +0100 Subject: [PATCH] Ignore lines with # --- instruction.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/instruction.go b/instruction.go index 7bd9d5e..96b1501 100644 --- a/instruction.go +++ b/instruction.go @@ -34,6 +34,9 @@ func (instruction *LinkInstruction) String() string { func ParseInstruction(line, workdir string) (LinkInstruction, error) { line = strings.TrimSpace(line) + if strings.HasPrefix(line, "#") { + return LinkInstruction{}, fmt.Errorf("comment line") + } parts := strings.Split(line, deliminer) instruction := LinkInstruction{}