diff options
| author | Yousong Zhou | 2020-11-03 03:26:21 +0000 |
|---|---|---|
| committer | Yousong Zhou | 2020-11-11 13:29:55 +0000 |
| commit | bd21e4a93617a6609725509c67dc293242c80f97 (patch) | |
| tree | b032037b48d2aa38bc6fb1b1864319cc890adcd4 | |
| parent | 7863c33ceaf155783861aa434cc81b5cf37f7a15 (diff) | |
| download | openwrt-bd21e4a93617a6609725509c67dc293242c80f97.tar.gz | |
base-files: upgrade: use stdin redirection to replace cat command
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
| -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() { |