From 26084da79acee3b4ca8abc9fe16e06f731220e7c Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 12 Jul 2019 12:56:37 -0700 Subject: [PATCH] fix: use correct variable for checking for password file --- common-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common-functions b/common-functions index 08a6c6f..f9ccfe4 100755 --- a/common-functions +++ b/common-functions @@ -591,7 +591,7 @@ service_password() { declare SERVICE="$1" local SERVICE_ROOT="$PLUGIN_DATA_ROOT/$SERVICE" local PASSWORD_FILE="$SERVICE_ROOT/PASSWORD" - if [[ -f "$PASSWORD" ]]; then + if [[ -f "$PASSWORD_FILE" ]]; then cat "$PASSWORD_FILE" fi } @@ -601,7 +601,7 @@ service_root_password() { declare SERVICE="$1" local SERVICE_ROOT="$PLUGIN_DATA_ROOT/$SERVICE" local PASSWORD_FILE="$SERVICE_ROOT/ROOTPASSWORD" - if [[ -f "$PASSWORD" ]]; then + if [[ -f "$PASSWORD_FILE" ]]; then cat "$PASSWORD_FILE" fi }