diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2023-06-08 16:52:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-08 16:52:55 +0200 |
commit | 3e673e91a943f88d02215cef1020983587907739 (patch) | |
tree | 0e2f4d08055c003e6273723e0b6c66f0143e13ca /utils/common.sh | |
parent | 7dcceb4daf1600915cb508ba7eff872699526a93 (diff) |
ProtonVPN: add basic detection (#2006)
Diffstat (limited to 'utils/common.sh')
-rwxr-xr-x | utils/common.sh | 2 |
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 |