Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit cd2e809

Browse files
author
jclc
committed
updated install.sh and added instructions
1 parent dacfc50 commit cd2e809

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,19 @@ TMC-CLI is the command-line client for University of Helsinki's Test My Code -fr
2323

2424
##Installation
2525

26-
Download the latest [release](https://github.com/tmc-cli/tmc-cli/releases/latest).
27-
If you use Linux or OS X, choose "tmc". If you use Windows, choose "tmc-cli-[VERSION].jar".
26+
###Using the install script (Linux/OS X only)
27+
28+
Copy and paste the following command in your terminal:
29+
30+
```
31+
curl -L0 https://raw.githubusercontent.com/tmc-cli/tmc-cli/master/scripts/install.sh | bash
32+
```
33+
34+
Now try `source ~/.bashrc` or launching a new terminal - `tmc` should work.
35+
36+
###Downloading manually
37+
38+
Download the latest [release](https://github.com/tmc-cli/tmc-cli/releases/latest). If you use Linux or OS X, choose "tmc". If you use Windows, choose "tmc-cli-[VERSION].jar".
2839

2940
If you downloaded "tmc", navigate to the download directory on your terminal and make it executable with `chmod u+x ./tmc`.
3041

scripts/install.sh

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
#bin/sh
1+
#bin/bash
22

3-
curl -O https://github.com/tmc-cli/tmc-cli/releases/download/0.6.3/tmc
3+
curl -LO https://www.github.com/tmc-cli/tmc-cli/releases/download/0.6.3/tmc > ./tmc
44
chmod u+x ./tmc
5-
if ./tmc ;then
6-
echo Error when installing.
7-
exit 1
8-
fi
9-
10-
11-
source $HOME/.bashrc
12-
13-
echo Installation complete.
14-
exit 0
5+
./tmc
6+
exit

0 commit comments

Comments
 (0)