PortValhalla/scripts/Common/Software/tea/install.sh

16 lines
316 B
Bash
Raw Normal View History

2022-11-12 12:18:28 +00:00
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE";
2022-11-13 00:11:32 +00:00
else
2023-01-23 15:11:51 +00:00
contextRoot="$(mktemp -d)";
pushd "$contextRoot" > /dev/null;
2022-11-12 12:18:28 +00:00
wget https://dl.gitea.io/tea/0.9.0/tea-0.9.0-linux-amd64 -O tea;
install tea /usr/local/bin;
2022-11-12 12:18:28 +00:00
popd > /dev/null;
2023-01-23 15:11:51 +00:00
rm -rf "$contextRoot";
2022-11-13 00:11:32 +00:00
fi