From 3e673e91a943f88d02215cef1020983587907739 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Thu, 8 Jun 2023 16:52:55 +0200 Subject: ProtonVPN: add basic detection (#2006) --- utils/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/common.sh') 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 -- cgit v1.2.3