From 5e3284ea583eb2edbdf19d8b750a4a757239c45a Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 12 Nov 2022 13:18:28 +0100 Subject: [PATCH] Add script for installing `tea` --- ManuSurface/setup.sh | 19 +++++++++++-------- scripts/PopOS/software/tea.sh | 16 ++++++++++++++++ 2 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 scripts/PopOS/software/tea.sh diff --git a/ManuSurface/setup.sh b/ManuSurface/setup.sh index 5839b39d..5b3353cf 100644 --- a/ManuSurface/setup.sh +++ b/ManuSurface/setup.sh @@ -1,5 +1,7 @@ #!/bin/bash dir="${BASH_SOURCE%/*}" +popOSRoot="$dir/../scripts/PopOS" +softwareRoot="$popOSRoot/software" # Set Hostname sudo hostnamectl set-hostname ManuSurface @@ -9,18 +11,19 @@ sudo apt update sudo apt upgrade # Install surface-linux and Secure Boot -source "$dir/../scripts/PopOS/linux-surface.sh" -source "$dir/../scripts/PopOS/secure-boot.sh" +source "$popOSRoot/linux-surface.sh" +source "$popOSRoot/secure-boot.sh" # Install Brave -source "$dir/../scripts/PopOS/softwate/brave.sh" -source "$dir/../scripts/PopOS/software/brave-extensions.sh" -source "$dir/../scripts/PopOS/softwate/brave-beta.sh" -source "$dir/../scripts/PopOS/softwate/brave-nightly.sh" +source "$softwareRoot/brave.sh" +source "$softwareRoot/brave-extensions.sh" +source "$softwareRoot/brave-beta.sh" +source "$softwareRoot/brave-nightly.sh" # Install further software -source "$dir/../scripts/PopOS/softwate/codium.sh" -source "$dir/../scripts/PopOS/softwate/code.sh" +source "$softwareRoot/codium.sh" +source "$softwareRoot/code.sh" +source "$softwareRoot/tea.sh" # Install other flatpaks flatpak install flathub com.bitwarden.desktop diff --git a/scripts/PopOS/software/tea.sh b/scripts/PopOS/software/tea.sh new file mode 100644 index 00000000..cb7b0e11 --- /dev/null +++ b/scripts/PopOS/software/tea.sh @@ -0,0 +1,16 @@ +#!/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