I'm trying to download a binary from nexus from a script/dockerfile here is my command:
wget --user=${NEXUS_USERNAME} --password=${NEXUS_PASSWORD} ${NEXUS_URL}/${ASM_NEXUS_REPO}/${ASM_VERSION} -O ${ASM_DESTINATION_PATH}
I wanted to know if wget (or any other linux built-in command that can do the same thing) had a parameter like "-x" to give to a downloaded file the executable rights (instead of running chmod +x ${ASM_DESTINATION_PATH}
or umask command - only in one unique command -)
Thanks in advance
You can't. It's as simple as that. Unix permissions are not transferred by HTTP. To do this, you would need to use other tools, e.g. rsync or scp.