On the other note, you missed the last character of the URL, so that's not terribly surprising.
But the resulting script has this lovely gem:
curl -L -o $TARGET ...
chmod +x $TARGET
No error management, no download integrity checking... Let's just run a fie from the web! Which can be incomplete despite the `set -e` at the start of the file.