Merge pull request #1579 from MasonM/fix-permission-denied
This commit is contained in:
		
						commit
						cbbf60da58
					
				|  | @ -82,6 +82,13 @@ jobs: | |||
|           echo "Expected: \"${{ matrix.version }}\", Got: \"${image_node_version}\"" | ||||
|           [ "${image_node_version}" == "${{ matrix.version }}" ] | ||||
| 
 | ||||
|       - name: Verify entrypoint runs regular, non-executable files with node | ||||
|         run: | | ||||
|           tmp_file=$(mktemp) | ||||
|           echo 'console.log("success")' > "${tmp_file}" | ||||
|           output=$(docker run --rm -v "${tmp_file}:/app/index.js" node:${{ matrix.version }}-${{ matrix.variant }} app/index.js) | ||||
|           [ "${output}" = 'success' ] | ||||
| 
 | ||||
|       - name: Test for npm | ||||
|         run: docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} npm --version | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,10 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then | ||||
| # Run command with node if the first argument contains a "-" or is not a system command. The last | ||||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||||
|   set -- node "$@" | ||||
| fi | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue