aboutsummaryrefslogtreecommitdiff
path: root/utils/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/common.sh')
-rwxr-xr-xutils/common.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/common.sh b/utils/common.sh
index 415d6fe87..67087484a 100755
--- a/utils/common.sh
+++ b/utils/common.sh
@@ -21,7 +21,7 @@ function is_file_empty()
exit 1
fi
- if [ `cat "${file}" | wc -l` -eq 0 ]; then
+ if [ `cat "${file}" | wc -c` -eq 0 ]; then
printf '%s error: %s\n' "${0}" "file ${file} empty!" >&2
exit 1
fi