Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to installation script #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
#!/bin/bash

cd /dev/shm
git clone https://github.com/mustafaozhan/Breeze-Adapta-Cursor

cd Breeze-Adapta-Cursor
PACKAGE="/usr/share/icons/Breeze-Adapta-Cursor/"

if [[ -d $PACKAGE ]]; then
echo "Already installed, to re-install remove the $PACKAGE dir"
exit 1
read -p "Already installed, would you like to reinstall? [y/N] " yesno < /dev/tty

case $yesno in
[yY] ) echo "OK, Reinstalling in $PACKAGE..."
sudo rm -r $PACKAGE && sudo mkdir $PACKAGE
sudo mv *.theme cursors $PACKAGE;
;;
[nN] ) echo "OK, Exiting...";
exit 0;;
* ) echo "Invalid Response"
exit 1;;
esac
else
echo "Installation in $PACKAGE ..."

sudo mkdir $PACKAGE
sudo mv *.theme cursors $PACKAGE
echo "Installing in $PACKAGE..."

sudo mkdir $PACKAGE
sudo mv *.theme cursors $PACKAGE

echo Done
echo "Done"
fi

exit 0