summaryrefslogtreecommitdiffstats
path: root/jjb/doctor/doctor-env-presetup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/doctor/doctor-env-presetup.sh')
-rwxr-xr-xjjb/doctor/doctor-env-presetup.sh4
1 files changed, 3 insertions, 1 deletions
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