This repository has been archived on 2022-06-22. You can view files and clone it, but cannot push or open issues or pull requests.
Terminal-Based-Calculator/Installer.sh
2021-06-23 22:25:05 -05:00

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