diff options
author | Thomas Lange <code@nerdmind.de> | 2022-10-24 20:48:16 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2022-10-24 22:24:11 +0200 |
commit | a4baf04d0c0345310579c63a51ff1af58ebb7b4e (patch) | |
tree | c5bece1ddee1fcdf896d9f3acd84cde8fd5569c1 /license.md | |
parent | ee55f1d2d75078c6d96da875166c2c82e04a668c (diff) | |
download | painlessle-a4baf04d0c0345310579c63a51ff1af58ebb7b4e.tar.gz painlessle-a4baf04d0c0345310579c63a51ff1af58ebb7b4e.tar.xz painlessle-a4baf04d0c0345310579c63a51ff1af58ebb7b4e.zip |
Do some code cleanup/optimizing (including bugfix)
Do some code cleanup and optimizing, and fix a bug where the script will
always return exit code 1 if LETSENCRYPT_COMMAND_AFTER wasn't defined.
The bug was caused by this last line in the script:
[ ! -z "${LETSENCRYPT_COMMAND_AFTER}" ] \
&& eval $LETSENCRYPT_COMMAND_AFTER
... and has been fixed by putting the "eval $LETSENCRYPT_COMMAND_AFTER"
line into a real "if" container so that it doesn't affect the exit code
of the script when LETSENCRYPT_COMMAND_AFTER is undefined:
if [ ! -z "${LETSENCRYPT_COMMAND_AFTER}" ]; then
eval $LETSENCRYPT_COMMAND_AFTER
fi
Diffstat (limited to 'license.md')
0 files changed, 0 insertions, 0 deletions