github.com/GoogleContainerTools/skaffold@v1.39.18/deploy/buildpacks/third_party/entrypoint.sh (about)

     1  #!/bin/sh
     2  #
     3  # Originally copied from the nodejs/docker-node project's docker-entrypoint.sh.
     4  # The nodejs/docker-node project is made available under the MIT License.
     5  # nodejs/docker-node project: <https://github.com/nodejs/docker-node/tree/aaa6fff33bc11ca04d8e3429c3e08292ca7adfe7>
     6  # docker-entrypoint.sh: <https://github.com/nodejs/docker-node/blob/aaa6fff33bc11ca04d8e3429c3e08292ca7adfe7/docker-entrypoint.sh>
     7  # project LICENSE: <https://github.com/nodejs/docker-node/blob/aaa6fff33bc11ca04d8e3429c3e08292ca7adfe7/LICENSE>
     8  #
     9  # The MIT License (MIT)
    10  # 
    11  # Copyright (c) 2015 Joyent, Inc.
    12  # Copyright (c) 2015 Node.js contributors
    13  # Copyright 2021 The Skaffold Authors
    14  # 
    15  # Permission is hereby granted, free of charge, to any person obtaining a copy
    16  # of this software and associated documentation files (the "Software"), to deal
    17  # in the Software without restriction, including without limitation the rights
    18  # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    19  # copies of the Software, and to permit persons to whom the Software is
    20  # furnished to do so, subject to the following conditions:
    21  # 
    22  # The above copyright notice and this permission notice shall be included in all
    23  # copies or substantial portions of the Software.
    24  # 
    25  # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    26  # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    27  # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    28  # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    29  # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    30  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    31  # SOFTWARE.
    32  
    33  set -e
    34  
    35  if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then
    36    set -- pack "$@"
    37  fi
    38  
    39  exec "$@"
    40