Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Commit

Permalink
Updating readme with installation instructions and updating setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Omer Chiasson committed Feb 19, 2017
1 parent 0af5c44 commit 3622d1e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ Command-line utility for quickly executing files containing code in a compiled l

Seemlessly execute files as if they were scripts, leaving no trace of binaries behind.

## Installation
To install *car* enter the following command into a terminal:

```
sudo curl -sL "$(curl -s https://api.github.com/repos/nicholaschiasson/car/releases/latest | sed -n -e 's/^.*"browser_download_url": "\(.*\)"$/\1/p')" | sh
```

## Usage
- Add *car* to a local bin directory and make sure the directory is part of your ${PATH} environment variable.

Expand Down
6 changes: 4 additions & 2 deletions build/car_setup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env sh

sudo curl https://raw.githubusercontent.com/nicholaschiasson/car/master/src/car.sh -o /usr/local/bin/car
sudo chmod ugo+x /usr/local/bin/car
echo "Downloading car and intalling into /usr/local/bin/"
sudo curl -sSf https://raw.githubusercontent.com/nicholaschiasson/car/master/src/car.sh -o /usr/local/bin/car || (>&2 echo "Download failed." && exit 1)
sudo chmod ugo+x /usr/local/bin/car || (>&2 echo "Installation failed." && exit 1)
echo "Installation complete!"
2 changes: 1 addition & 1 deletion src/car.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function Error()
ERROR_MESSAGE="$1"
fi

[ -n "$ERROR_MESSAGE" ] && (>&2 echo "car: "$(ColorEcho "${color_light_red}" error:)" ${ERROR_MESSAGE}")
[ -n "$ERROR_MESSAGE" ] && (>&2 echo "car: "$(ColorEcho "${color_light_red}" error:)" ${ERROR_MESSAGE}")
exit $EXIT_CODE
}

Expand Down

0 comments on commit 3622d1e

Please sign in to comment.