#!/bin/bash # Elevate script if [ ! "$UID" -eq 0 ] then sudo bash "$BASH_SOURCE"; else workingDirectory="$(pwd)"; contextRoot="$(mktemp -d)"; 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"; fi