projects
/
openwrt
/
staging
/
noltari.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
base-files: upgrade: use stdin redirection to replace cat command
[openwrt/staging/noltari.git]
/
package
/
base-files
/
files
/
lib
/
upgrade
/
common.sh
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() {