aboutsummaryrefslogtreecommitdiff
path: root/utils/common.sh
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-06-08 16:52:55 +0200
committerGitHub <noreply@github.com>2023-06-08 16:52:55 +0200
commit3e673e91a943f88d02215cef1020983587907739 (patch)
tree0e2f4d08055c003e6273723e0b6c66f0143e13ca /utils/common.sh
parent7dcceb4daf1600915cb508ba7eff872699526a93 (diff)
ProtonVPN: add basic detection (#2006)
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