-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
16 lines (13 loc) · 772 Bytes
/
install.sh
File metadata and controls
16 lines (13 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/bash
echo "OpenSoftware-World cannot be held responsible for any data loss that may occur during the installation of the calculator. (This script copies the calc file to the /usr/bin directory, so please make sure there is no file named calc in that directory.)"
read -p "Would you like to download the Calc app by copying it to the /usr/bin directory? " answer
read -p "Please select the calculator language. (TR/EN) " lang
if [[ "$answer" == "y" || "$answer" == "Y" ]]; then
full_path="Install/$lang/calc"
sudo cp $full_path /usr/bin/
sudo chmod +x /usr/bin/calc
echo "The Calc app has been successfully downloaded."
else
echo "The download of the Calc app has been canceled."
fi
# Changes will be made to the uninstall files for Linux.