base-files: upgrade: use stdin redirection to replace cat command
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
parent
7863c33cea
commit
bd21e4a936
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ get_image() { # <source> [ <command> ]
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat "$from" 2>/dev/null | $cmd
|
$cmd <"$from"
|
||||||
}
|
}
|
||||||
|
|
||||||
get_magic_word() {
|
get_magic_word() {
|
||||||
|
|
Loading…
Reference in a new issue