From d93c7693f058ce2465f6adc0c1ae7b43945c3634 Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Sun, 7 Jan 2024 12:09:25 +0100 Subject: [PATCH] fixed the check for private internet access files --- .../roles/fish/files/fish/functions/privateinternetaccess.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/fish/files/fish/functions/privateinternetaccess.fish b/ansible/roles/fish/files/fish/functions/privateinternetaccess.fish index 8d3707d..d4901e0 100644 --- a/ansible/roles/fish/files/fish/functions/privateinternetaccess.fish +++ b/ansible/roles/fish/files/fish/functions/privateinternetaccess.fish @@ -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