Skip to content

Commit cd01b38

Browse files
committed
Changing installation method to curl
fixing typo in uninstall.sh using curl as an installation method updating installation and uninstallation commands removing the final message in the end curl >> wget new final message
1 parent bf89db1 commit cd01b38

3 files changed

Lines changed: 17 additions & 14 deletions

File tree

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,12 @@ This project is made with following langs/frameworks.
7474

7575
_Now since we are done with the setting up of environment suitable for the project to compile/run, let's install and configure the project on your system locally now._
7676

77-
1. Clone the repo.
78-
2. Make the setup script executable.
79-
3. Execute the setup script.
77+
1. Copy and run the following command to install the run binary on your system.
8078

81-
_Copy the following commands to perform above mentioned tasks!_
8279
```sh
83-
git clone https://github.com/proffapt/code-runner.git
84-
cd code-runner
85-
chmod +x setup.sh
86-
./setup.sh
80+
curl https://raw.githubusercontent.com/proffapt/code-runner/main/setup.sh | /bin/bash
8781
```
88-
4. Run the code
82+
2. Run the code
8983
```sh
9084
run my_code.c
9185
```
@@ -94,6 +88,11 @@ _Copy the following commands to perform above mentioned tasks!_
9488
run ~/path/to/my_code.c
9589
```
9690

91+
3. Uninstall using the following command
92+
```sh
93+
curl https://raw.githubusercontent.com/proffapt/code-runner/main/uninstall.sh | /bin/bash
94+
```
95+
9796
<p align="right">(<a href="#top">back to top</a>)</p>
9897

9998

setup.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@ blue=$(tput setaf 4)
77
cyan=$(tput setaf 6)
88
white=$(tput setaf 7)
99

10+
## Fetching the run script
11+
echo "${green}[+]${white} Fetching run executable from the github repository"
12+
wget https://raw.githubusercontent.com/proffapt/code-runner/main/run
13+
1014
## making the code-runner(run) executable
11-
chmod +x run
15+
chmod +x ./run
1216
echo "${green}[+]${white} Made the run script executable"
1317

1418
## adding run executable to bin folder
1519
echo "${green}[+]${white} Adding run executable to your bin folder"
1620
echo "${yellow}[~]${white} ${blue}To do that this script will be requiring your user password${green}"
17-
sudo cp ./run /usr/local/bin/run
21+
sudo mv ./run /usr/local/bin/run
1822

1923
## the final print message
2024
echo "${yellow}[~]${white} Now use ${cyan}run --help${white} to go to the help menu"

uninstall.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
green=$(tput setaf 2)
55
yellow=$(tput setaf 3)
66
blue=$(tput setaf 4)
7-
cyan=$(tput setaf 6)
87
white=$(tput setaf 7)
98

10-
## adding run executable to bin folder
9+
## removing run executable to bin folder
1110
echo "${green}[+]${white} Removing run executable from your bin folder"
1211
echo "${yellow}[~]${white} ${blue}To do that this script will be requiring your user password${green}"
1312
sudo rm /usr/local/bin/run
1413

14+
# final print message
1515
## the final print message
16-
echo "${yellow}[~]${white} Delete this folder to remove the existence of ${cyan}run${white} from your system"
16+
echo "${yellow}[~]${white} Uninstalled ${green}run${white} from your system!"

0 commit comments

Comments
 (0)