Open notorand-it opened 3 weeks ago
Agree, thank you for reporting. It's a good point for us
Glad to be of any help.
I have the following suggestions to be merged in the README.md (is that really a markdown file?)
Getting started/Prerequisites/Linux: local, static
BINDIR=${HOME}/bin
mkdir -p ${BINDIR}
wget -q -O - "https://api.github.com/repos/sigstore/cosign/releases/latest" | \
jq -r '.assets[] | select(.name | match("cosign-linux-amd64$") ) | .browser_download_url' | \
wget -q -i - -O ${BINDIR}/cosign && chmod 700 ${BINDIR}/cosign
Getting started/Installation/Manual installation
BINDIR=${HOME}/bin
mkdir -p ${BINDIR} &> /dev/null || true
wget -q -O - "https://api.github.com/repos/tofuutils/tenv/releases/latest" | \
jq -r '.assets[] | select(.name | match("Linux_x86_64.tar.gz$") ) | .browser_download_url' | \
wget -q -i - -O - | tar xfz - -C ${BINDIR}
In case $BINDIR
is a system dir (like /usr/bin
), you need to prepend the tar
command with either sudo
or use any other privilege escalation tool.
I am deviating from your previous shell snippets because:
wget
but not curl
.;
)I will do the PR.
Describe the bug Manual installation guide is largely incomplete.
Expected details (example) If you can escalate to
root
privileges (withsu
orsudo
or even logging in asroot
), you can make a system-wide installation of thetenv
tool. Untar the package directly to/usr/bin
or any other directory whose name is listed in the$PATH
directory. As an option, you can untar it into any other directory (e.g./usr/local/tenv
) and then add it to the system-wide$PATH
or even create symlinks from that directory to one already listed in$PATH
. If you cannot escalate toroot
privileges, you need to untar the package into a directory inde your own$HOME
(e.g.~/bin
), add that directory to your local$PATH
(e.g. by using your.profile
or.login
file).Any subsequent call to
tenv
will refer to the calling user$HOME
directory, thus installing, running and listing whatever binaries are present in the local directory (~/.tenv
by default).Additional context Clear documentation is key to success IMHO.