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

27 lines
552 B
Bash
Raw Normal View History

#!/bin/bash
2021-06-23 22:58:38 +00:00
read -r -p "Would you like to uninstall or install? (U/I)" input
case $input in
[uU])
2021-06-23 23:13:04 +00:00
make uninstall
sudo make sudo_uninstall
;;
[iI])
2021-06-23 23:13:04 +00:00
make compile
sudo make sudo_install
read -r -p "Would you like to integrate the calculator to your menu? (Y\n)" input2
2021-06-23 23:13:04 +00:00
case $input2 in
[yY])
make make_desktop_file
chmod +x Calculator.desktop
2021-06-23 23:13:04 +00:00
cp Calculator.desktop ${HOME}/Desktop
;;
*)
echo "OK :("
2021-06-23 23:13:04 +00:00
;;
esac
;;
2021-06-23 22:58:38 +00:00
*)
2021-06-23 23:13:04 +00:00
echo "Hey! That's not an option!"
;;
2021-06-23 22:58:38 +00:00
esac