mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-11-13 14:19:09 +01:00
fixed the check for private internet access files
This commit is contained in:
1 parent
0be6bf0783
commit
d93c7693f0
1 file changed
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user