Organized some code, added some echos and reduced the icon border

This commit is contained in:
Matheus Teixeira Tomaz
2021-11-25 22:12:05 -03:00
parent bf8575c9d7
commit f103ceeb64
3 changed files with 20 additions and 13 deletions

View File

@@ -1,11 +1,13 @@
#!/bin/bash
function update() {
echo -e "\n\033[1;32mDownloading the latest version...\033[0m"
wget https://tlauncher.org/jar -P /tmp
unzip /tmp/jar -d /tmp/tlauncher
sudo mv /tmp/tlauncher/*.jar /usr/share/tlauncher/tlauncher.jar
rm /tmp/jar
rm -rf /tmp/tlauncher/
echo -e "\n\033[1;32mDone!\033[0m"
}
function usage() {
@@ -20,13 +22,10 @@ function usage() {
while [[ "$1" ]]; do
case "$1" in
"--update" | "-u")
update ; exit
;;
update ; exit ;;
*)
usage ; exit
;;
usage ; exit ;;
esac
shift
done

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 64 KiB