Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system-agent-install.sh contains multiple shebangs #144

Open
lindhe opened this issue Nov 6, 2023 · 0 comments
Open

system-agent-install.sh contains multiple shebangs #144

lindhe opened this issue Nov 6, 2023 · 0 comments

Comments

@lindhe
Copy link

lindhe commented Nov 6, 2023

When I go to to https://rancher.example.com/system-agent-install.sh for my Rancher instance, I get served a shell script that beings like this:

#!/usr/bin/env sh

CATTLE_AGENT_BINARY_BASE_URL="https://rancher.example.com/assets"
CATTLE_SERVER=https://rancher.example.com



#!/bin/sh

if [ "${DEBUG}" = 1 ]; then
    set -x
    CURL_LOG="-v"
else
    CURL_LOG="-sS"
fi

# Usage:
#   curl ... | ENV_VAR=... sh -
#       or
#   ENV_VAR=... ./install.sh
#
[…]

Having double (and different) shebangs smells like a bug. I don't know that it does something strange, but I think it's worth taking a look at before it does. 🙃

I don't know if this Issue belongs here or over at https://github.com/rancher/rancher/ – just tell me and I'll repost it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant