I'd like to understand what this script does. It's defined as the entrypoint for the node-14 docker-image. We have issues with our environment variables disappearing on this new version and I'm wondering if it has to do with this script (the env vars have some special characters in them). Could someone break it down for me?
#!/bin/sh
set -e
if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then
set -- node "$@"
fi
exec "$@"