I’m just trying to contact developers about an error in letsencrypt-auto script I found in my environment and looks like this is the best place to report.
I’m trying to install the letsencrypt client using letsencrypt-auto version 0.4.0 onto Linux CentOS 5.11 (2.6.18-406.el5PAE)
While checking the Python version, the script exit with the error below:
./letsencrypt-auto: line 108: [: too many arguments
The error for me is on the line 107:
PYVER="$LE_PYTHON" --version 2>&1 | cut -d" " -f 2 | cut -d. -f1,2 | sed 's/\.//'
My Python 2.4.3 doesn’t support ‘–version’ key, so $PYVER doesn’t forms correctly and contains few strings of Python options usage text.
My Python 2.4.3 have only ‘-V’ key to show its version. As soon as I put it instead of ‘–version’ it works as intended. So, my working string 107 is:
PYVER="$LE_PYTHON" -V 2>&1 | cut -d" " -f 2 | cut -d. -f1,2 | sed 's/\.//'
(back quotes lost, since they’re using for formatting here)
Just my findings…