diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2020-11-03 11:26:21 +0800 |
---|---|---|
committer | Yousong Zhou <yszhou4tech@gmail.com> | 2020-11-11 21:29:55 +0800 |
commit | bd21e4a93617a6609725509c67dc293242c80f97 (patch) | |
tree | b032037b48d2aa38bc6fb1b1864319cc890adcd4 /package/base-files/files/lib/upgrade | |
parent | 7863c33ceaf155783861aa434cc81b5cf37f7a15 (diff) | |
download | upstream-bd21e4a93617a6609725509c67dc293242c80f97.tar.gz upstream-bd21e4a93617a6609725509c67dc293242c80f97.tar.bz2 upstream-bd21e4a93617a6609725509c67dc293242c80f97.zip |
base-files: upgrade: use stdin redirection to replace cat command
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'package/base-files/files/lib/upgrade')
-rw-r--r-- | package/base-files/files/lib/upgrade/common.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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() { # <source> [ <command> ] esac fi - cat "$from" 2>/dev/null | $cmd + $cmd <"$from" } get_magic_word() { |