Skip to content

Commit 66f5243

Browse files
committed
fix bug with shell env reader
1 parent 3ddd398 commit 66f5243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (sh *shell) decodeOp(ln string) (shellOp, error) {
3939
if i < 0 {
4040
return sop, fmt.Errorf("expected comment")
4141
}
42-
args := strings.Split(ln[i+1:], ":")
42+
args := strings.Split(ln[i+len(sh.commentSigil):], ":")
4343
if len(args) < 3 {
4444
return sop, fmt.Errorf("expected 3 arguments")
4545
}

0 commit comments

Comments
 (0)