aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2020-11-03 11:26:21 +0800
committerYousong Zhou <yszhou4tech@gmail.com>2020-11-11 21:29:55 +0800
commitbd21e4a93617a6609725509c67dc293242c80f97 (patch)
treeb032037b48d2aa38bc6fb1b1864319cc890adcd4
parent7863c33ceaf155783861aa434cc81b5cf37f7a15 (diff)
downloadupstream-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>
-rw-r--r--package/base-files/files/lib/upgrade/common.sh2
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() {