mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 16:52:12 +02:00
fixed the check for private internet access files
This commit is contained in:
@@ -3,7 +3,7 @@ function privateinternetaccess
|
||||
set openvpn_files_path "/etc/privateinternetaccess"
|
||||
|
||||
# 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
|
||||
echo "Error: no OpenVPN files found in $openvpn_files_path"
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user