From: Yousong Zhou Date: Tue, 3 Nov 2020 03:26:21 +0000 (+0800) Subject: base-files: upgrade: use stdin redirection to replace cat command X-Git-Tag: v21.02.0-rc1~1157 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bd21e4a93617a6609725509c67dc293242c80f97;p=openwrt%2Fstaging%2Fhauke.git base-files: upgrade: use stdin redirection to replace cat command Signed-off-by: Yousong Zhou --- diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index 0f25199365..5eb7b23a83 100644 --- a/package/base-files/files/lib/upgrade/common.sh +++ b/package/base-files/files/lib/upgrade/common.sh @@ -103,7 +103,7 @@ get_image() { # [ ] esac fi - cat "$from" 2>/dev/null | $cmd + $cmd <"$from" } get_magic_word() {