26 lines
548 B
Bash
26 lines
548 B
Bash
#!/bin/bash
|
|
read -r -p "Would you like to uninstall or install? (U/I)" input
|
|
case $input in
|
|
[uU])
|
|
make uninstall
|
|
sudo make sudo_uninstall
|
|
;;
|
|
[iI])
|
|
make compile
|
|
read -r -p "Would you like to integrate the calculator to your start menu and desktop? (Y\n)" input2
|
|
case $input2 in
|
|
[yY])
|
|
make make_desktop_file
|
|
sudo make sudo_install
|
|
cp Calculator.desktop ${HOME}/Desktop
|
|
;;
|
|
*)
|
|
sudo make sudo_install
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
echo "Hey! That's not an option!"
|
|
;;
|
|
esac
|