Improve `if` condition syntax in shell script

pull/59/head
Peter Dave Hello 5 years ago
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

Loading…
Cancel
Save