base-files: upgrade: use stdin redirection to replace cat command

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
Yousong Zhou 2020-11-03 11:26:21 +08:00
parent 7863c33cea
commit bd21e4a936

View File

@ -103,7 +103,7 @@ get_image() { # <source> [ <command> ]
esac
fi
cat "$from" 2>/dev/null | $cmd
$cmd <"$from"
}
get_magic_word() {