myitcv / x

Mono-repo for all myitcv.io/... Go code
MIT License
104 stars 20 forks source link

cmd/egrunner: simplify checking for shell asserts #102

Closed mvdan closed 5 years ago

mvdan commented 5 years ago

mvdan.cc/sh version 2.6 adds syntax.Word.Lit, which makes it trivial to check if a word is simply an unquoted literal. Update the dependency and remove the now unnecessary reflection code.

myitcv commented 5 years ago

Looks great, thanks, @mvdan. I've force-pushed the "fix" to go.sum to your branch and will merge once the build goes green.