1
1
mirror of https://github.com/dnscrypt/dnscrypt-server-docker synced 2024-11-26 06:13:49 +01:00

Improve if condition syntax in shell script

This commit is contained in:
Peter Dave Hello 2019-05-12 19:17:50 +08:00
parent 96b9dc9b32
commit 3de5db51e9

@ -65,7 +65,7 @@ provider_info() {
}
is_initialized() {
if [ ! -f "${KEYS_DIR}/public.key" -a ! -f "${KEYS_DIR}/secret.key" -a ! -f "${KEYS_DIR}/provider_name" ]; then
if [ ! -f "${KEYS_DIR}/public.key" ] && [ ! -f "${KEYS_DIR}/secret.key" ] && [ ! -f "${KEYS_DIR}/provider_name" ]; then
echo no
else
echo yes