fixed the check for private internet access files

This commit is contained in:
aminnairi
2024-01-07 12:09:25 +01:00
parent 0be6bf0783
commit d93c7693f0
@@ -3,7 +3,7 @@ function privateinternetaccess
set openvpn_files_path "/etc/privateinternetaccess" set openvpn_files_path "/etc/privateinternetaccess"
# If there are no openvpn configuration files available # If there are no openvpn configuration files available
if test -eq 0 (/usr/bin/ls $openvpn_files_path) if not count $openvpn_files_path/* > /dev/null
# Bail out and exit with an error # Bail out and exit with an error
echo "Error: no OpenVPN files found in $openvpn_files_path" echo "Error: no OpenVPN files found in $openvpn_files_path"
return 1 return 1