Skip to content

Commit 7678fbf

Browse files
author
disaster2life
committed
made the code a tad bit nicer, added some comments
1 parent ac6a40a commit 7678fbf

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

install.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,19 @@ esac
2424

2525
Delta_Apply () {
2626
echo -e "\nRunning $DARK_PASTEL_BLUE$Installation_Method$RESET\n"
27-
curl -L -O https://github.com/Delta-Icons/linux/releases/latest/download/delta-linux.tar.gz
27+
# There really should be a trycatch here, it seems to go ahead even if this fails
28+
curl --output /tmp/delta-linux.tar.gz --silent --location https://github.com/Delta-Icons/linux/releases/latest/download/delta-linux.tar.gz
2829
case $Installation_Method in
30+
# Honestly forgot how any of this works, also `install` command is probably better, along with moving all of this to a makefile realistically
2931
Generic)
3032
sudo rm -rf "$Installation_Path"/Delta
31-
tar xf delta-linux.tar.gz --directory=delta-linux
33+
tar xf /tmp/delta-linux.tar.gz --directory=delta-linux
3234
sudo mv delta-linux/ "$Installation_Path"
3335
;;
3436
*)
3537
rm -rf "$Installation_Path"/Delta
3638
[[ ! -z "$Installation_Path" ]] && mkdir -pv "$Installation_Path"
37-
tar xf delta-linux.tar.gz --directory="$Installation_Path"
39+
tar xf /tmp/delta-linux.tar.gz --directory="$Installation_Path"
3840
;;
3941
esac
4042
echo -en "\n${UBE}Finished!$RESET\n"
@@ -49,7 +51,7 @@ GTK | QT)
4951
;;
5052
QT)
5153

52-
echo -e "The current desktop ($RESET$DESKTOP_SESSION$RESET) supports Manual installation.
54+
echo -e "The current desktop ($RESET$DESKTOP_SESSION$RESET) supports only Manual installation.
5355
You will have to manually select the pack from your settings panel.\n"
5456
;;
5557
esac

0 commit comments

Comments
 (0)