PortValhalla/scripts/PopOS/software/tea.sh

17 lines
280 B
Bash
Raw Normal View History

2022-11-12 12:18:28 +00:00
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
exec sudo bash "$0"
fi
workingDirectory=$(pwd)
contextRoot=$(mktemp)
cd $contextRoot
wget https://dl.gitea.io/tea/0.9.0/tea-0.9.0-linux-amd64 -O tea
install tea /usr/local/bin
cd $workingDirectory
rm -rf $contextRoot