From 55c77773abac932e9f913324bee2b1f195db6921 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 30 Aug 2020 13:39:29 -0400 Subject: [PATCH] fix: read input correct as string --- plugins/common/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/common/common.go b/plugins/common/common.go index 5f91c1cae..c99d38f67 100644 --- a/plugins/common/common.go +++ b/plugins/common/common.go @@ -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