Skip to content

Commit

Permalink
Merge pull request #6 from jtbx/install-optimisations
Browse files Browse the repository at this point in the history
Optimise install.sh and install AUR package if on Arch
  • Loading branch information
jobcmax authored Jun 27, 2023
2 parents 574ba11 + 96e0043 commit a927152
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
dir=$(pwd)
cd /usr/local/bin/
sudo curl -s https://raw.githubusercontent.com/jobcmax/maxfetch/main/maxfetch --output maxfetch
sudo chmod +x /usr/local/bin/maxfetch
echo "\033[1;34;48mmaxfetch is installed! \033[1;37;0m"
if [ -e /usr/bin/makepkg ]; then
printf "using AUR package\n"
pushd $(mktemp -d)
curl -s 'https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=maxfetch' -o PKGBUILD
makepkg -sci
else
pushd /usr/local/bin
sudo curl -s https://raw.githubusercontent.com/jobcmax/maxfetch/main/maxfetch -o maxfetch
sudo chmod +x maxfetch
fi
popd
printf "\033[1;34;48mmaxfetch is installed! \033[1;37;0m\n"
maxfetch
cd $dir

0 comments on commit a927152

Please sign in to comment.