Ignore lines with #
This commit is contained in:
@@ -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{}
|
||||
|
||||
|
Reference in New Issue
Block a user