PortValhalla/scripts/Software/tea/install.sh

16 lines
316 B
Bash
Executable file

#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE";
else
contextRoot="$(mktemp -d)";
pushd "$contextRoot" > /dev/null;
wget https://dl.gitea.io/tea/0.9.0/tea-0.9.0-linux-amd64 -O tea;
install tea /usr/local/bin;
popd > /dev/null;
rm -rf "$contextRoot";
fi