From 2e98e56224cd550cb3bf9798e420eece28139bd9 Mon Sep 17 00:00:00 2001 From: dongwenjuan Date: Wed, 1 Aug 2018 14:50:46 +0800 Subject: add the ssh_key info if the key_file is exist Change-Id: I7a95933e254b35fc7b26d649226192b8e4c407bb Signed-off-by: dongwenjuan --- jjb/doctor/doctor-env-presetup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'jjb') diff --git a/jjb/doctor/doctor-env-presetup.sh b/jjb/doctor/doctor-env-presetup.sh index 8c7c12e25..61e65c792 100755 --- a/jjb/doctor/doctor-env-presetup.sh +++ b/jjb/doctor/doctor-env-presetup.sh @@ -57,4 +57,6 @@ fi # Write the installer info to the file echo export INSTALLER_TYPE=${INSTALLER_TYPE} > $opnfv_installer echo export INSTALLER_IP=${INSTALLER_IP} >> $opnfv_installer -echo export SSH_KEY=${installer_key_file} >> $opnfv_installer +if [ -e ${installer_key_file} ]; then + echo export SSH_KEY=${installer_key_file} >> $opnfv_installer +fi -- cgit 1.2.3-korg