From 5affe4269985110d70daff60835834525b74ec2e Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 5 Aug 2019 15:24:15 -0400 Subject: [PATCH] fix: remove unnecessary cat --- plugins/common/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/common/functions b/plugins/common/functions index 7fb20c575..35a134231 100755 --- a/plugins/common/functions +++ b/plugins/common/functions @@ -405,7 +405,7 @@ copy_from_image() { fi # workaround for CHECKS file when owner is root. seems to only happen when running inside docker - cat "$TMP_FILE_COMMAND_OUTPUT" | dos2unix -l >"$DST_FILE" + dos2unix -l <"$TMP_FILE_COMMAND_OUTPUT" >"$DST_FILE" # add trailing newline for certain places where file parsing depends on it if [[ "$(tail -c1 "$DST_FILE")" != "" ]]; then