Don't fail if it succeeded
parent
497e4c10c3
commit
2490514c1b
|
@ -69,7 +69,7 @@ if ! [ -f "${path}" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Try to return it to the user
|
# Try to return it to the user
|
||||||
if ! <"${path}" "${LIB_DIR}/http_res" 200; then
|
if <"${path}" "${LIB_DIR}/http_res" 200; then
|
||||||
printf 'Sent SSL file "%s" to %s\n' "${path}" "${username}" >>"${LOGFILE}"
|
printf 'Sent SSL file "%s" to %s\n' "${path}" "${username}" >>"${LOGFILE}"
|
||||||
else
|
else
|
||||||
printf 'ERROR! Failed to return file: "%s"\n' "${path}" | tee -a "${LOGFILE}" | "${LIB_DIR}/http_res" 500
|
printf 'ERROR! Failed to return file: "%s"\n' "${path}" | tee -a "${LOGFILE}" | "${LIB_DIR}/http_res" 500
|
||||||
|
|
Loading…
Reference in New Issue