fix: read input correct as string

This commit is contained in:
Jose Diaz-Gonzalez
2020-08-30 13:39:29 -04:00
parent 147abc5c6b
commit 55c77773ab

View File

@@ -205,7 +205,7 @@ func CopyFromImage(appName string, image string, source string, destination stri
// add trailing newline for certain places where file parsing depends on it
b, err := sh.Command("tail", "-c1", destination).Output()
if string(b[:]) != "" {
if string(b) != "" {
f, err := os.OpenFile(destination, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
return err