@@ -18,7 +18,7 @@ error() {
1818 printf " \033[0;%sm%s\033[0m\033[0;%sm%s\033[0m\n" " ${WHITE} " " [TEL]: " " ${RED} " " ${1} "
1919}
2020
21- if [ -f " ~/.tel/.installed" ]; then # set update var if finished installation was detected
21+ if [ -f ~ /.tel/.installed ]; then # set update var if finished installation was detected
2222 UPDATE=true
2323 log " updating TEL setup"
2424 log " updating app launcher"
@@ -69,19 +69,19 @@ if [ "$UPDATE" = false ]; then #if first start detected
6969 cp -rf ~ /../usr/tel/.termux/* ~ /.termux/
7070 cp -rf ~ /../usr/tel/.tel/* ~ /.tel/
7171 cp -rf ~ /../usr/tel/.byobu/.tmux.conf ~ /.byobu/
72- fi
73- log " updating configs"
74- error " hit ENTER to continue, type no to skip(not recommended)"
75- read update_configs
76- if [ ! " $update_configs " = " no" ]; then
77- cp -rf ~ /../usr/tel/.byobu/* ~ /.byobu/
78- cp -rf ~ /../usr/tel/.termux/* ~ /.termux/
79- cp -rf ~ /../usr/tel/.byobu/.tmux.conf ~ /.byobu/
80- fi
72+ else
73+ log " updating configs"
74+ error " hit ENTER to continue, type no to skip(not recommended)"
75+ read update_configs
76+ if [ ! " $update_configs " = " no" ]; then
77+ cp -rf ~ /../usr/tel/.byobu/* ~ /.byobu/
78+ cp -rf ~ /../usr/tel/.termux/* ~ /.termux/
79+ cp -rf ~ /../usr/tel/.byobu/.tmux.conf ~ /.byobu/
80+ fi
8181
82- cp -rf ~ /../usr/tel/.tel/* ~ /.tel/
82+ cp -rf ~ /../usr/tel/.tel/* ~ /.tel/
83+ fi
8384
84- cd ~
8585
8686log " updating permissions"
8787
@@ -90,7 +90,7 @@ chmod +x ~/.tel/status.sh
9090chmod +x ~ /../usr/bin/tel-applist
9191chmod +x ~ /../usr/bin/tel-setup
9292
93- if [ -f " ~/../usr/etc/motd_finished" ]; then
93+ if [ -f ~ /../usr/etc/motd_finished ]; then
9494 mv ~ /../usr/etc/motd_finished ~ /../usr/etc/motd # set final motd
9595fi
9696
0 commit comments