Skip to content

Commit

Permalink
set terminal titles
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Jul 20, 2022
1 parent 27df398 commit 3492007
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core_refactor2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ unset has_foreign
unset broken_apt
unset has_weak_wifi

#Set terminal title
echo -ne "\e]0;L4T-Megascript\a"

if [ $(id -u) != 0 ]; then
clear -x
echo "Your username is"
Expand Down Expand Up @@ -536,9 +539,13 @@ while [ $x == 1 ]; do
time_script_start=$(date +%s)
if [ -z ${execute[$word]} ]; then
if [ -z ${root[$word]} ]; then
#Set terminal title
echo -ne "\e]0;Installing ${friendly[$word]}\a"
bash -c "$(curl -s https://raw.githubusercontent.com/$repository_username/L4T-Megascript/$repository_branch/${folder[$word]}/${scripts[$word]} || echo 'error_user "Your internet seems to have died.... we could not download the script"')" &> >(tee -a "$logfile")
script_exit_code="$?"
else
#Set terminal title
echo -ne "\e]0;Installing ${friendly[$word]}\a"
sudo -E bash -c "$(curl -s https://raw.githubusercontent.com/$repository_username/L4T-Megascript/$repository_branch/${folder[$word]}/${scripts[$word]} || echo 'error_user "Your internet seems to have died.... we could not download the script"')" &> >(tee -a "$logfile")
script_exit_code="$?"
fi
Expand Down Expand Up @@ -635,6 +642,9 @@ Or on Discord: \e[94m\e[4mhttps://discord.gg/abgW2AG87Z\e[0m" | tee -a "$logfile
fi
done

#Set terminal title
echo -ne "\e]0;L4T-Megascript\a"

if sudo -n true; then
add_desktop
else
Expand Down

0 comments on commit 3492007

Please sign in to comment.