summaryrefslogtreecommitdiff
path: root/build_tools
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-05-03 07:48:12 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-05-03 07:48:12 +0000
commit5277b8c1013169f899234813fd68e22a199eea47 (patch)
tree23f8385474e42f0233e6ac4dc7d29460372770f8 /build_tools
parente45dca02173d7a4e80e350fd3a0166c3e49c21d9 (diff)
fix kernel-cp download test
'wc -c <f$ile' returns the name of the file as well. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8585 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/kernel-cp2
1 files changed, 1 insertions, 1 deletions
diff --git a/build_tools/kernel-cp b/build_tools/kernel-cp
index 644e1f4..bf31b25 100755
--- a/build_tools/kernel-cp
+++ b/build_tools/kernel-cp
@@ -26,7 +26,7 @@ if [ "$1" = 'download' ]; then
fi
wget -O "$check_patch" "$URL"
- if [ `wc -c "$check_patch"` -lt 1000 ]; then
+ if [ `wc -c <"$check_patch"` -lt 1000 ]; then
# already downloaded
# FIXME: redirection fails on downloading and you get a
# short HTML file as your "script".