projects
/
openwrt
/
staging
/
zorun.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7863c33
)
base-files: upgrade: use stdin redirection to replace cat command
author
Yousong Zhou
<
[email protected]
>
Tue, 3 Nov 2020 03:26:21 +0000
(11:26 +0800)
committer
Yousong Zhou
<
[email protected]
>
Wed, 11 Nov 2020 13:29:55 +0000
(21:29 +0800)
Signed-off-by: Yousong Zhou <
[email protected]
>
package/base-files/files/lib/upgrade/common.sh
patch
|
blob
|
history
diff --git
a/package/base-files/files/lib/upgrade/common.sh
b/package/base-files/files/lib/upgrade/common.sh
index 0f251993652f1be254847dcfc8573d28e47acde4..5eb7b23a830791136b7899145b16a6cd2be49cd5 100644
(file)
--- 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() {