• Matthew Hooker's avatar
    provisioner/shell: fix EOF detection · 104f5049
    Matthew Hooker authored
    Fixes #507
    
    The scanUnixLine function was erroneously returning empty lines when EOF
    was reached.
    This commit adds a test for the problem and changes the scanUnixLine
    function to elide the trailing \n if no content was read.
    104f5049
unix_reader.go 1.25 KB