#!/bin/bash

echo "[*] neofetch: Updating..."
cd /usr/share/uninstall-script/neofetch

echo "[*] neofetch: Removing old neofetch..."
make uninstall > /dev/null 2>&1
rm -rf /usr/share/uninstall-script/neofetch

echo "[*] neofetch: Upgrading..."
cd /var/tmp
git clone https://github.com/dylanaraps/neofetch.git > /dev/null 2>&1
cd neofetch/
make install > /dev/null 2>&1
mkdir /usr/share/uninstall-script/neofetch
cd ../
cp -a neofetch/Makefile /usr/share/uninstall-script/neofetch/Makefile
rm -rf neofetch

echo "[*] neofetch: Done :)"
