PortValhalla/scripts/PopOS/software/tea.sh

17 lines
320 B
Bash
Raw Normal View History

2022-11-12 12:18:28 +00:00
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
2022-11-13 00:11:32 +00:00
sudo bash "$BASH_SOURCE"
else
workingDirectory=$(pwd)
2022-11-18 22:24:48 +00:00
contextRoot=$(mktemp -d)
2022-11-13 00:11:32 +00:00
cd $contextRoot
2022-11-12 12:18:28 +00:00
2022-11-13 00:11:32 +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
2022-11-13 00:11:32 +00:00
cd $workingDirectory
rm -rf $contextRoot
fi