Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ cargo install rascii_art
> GNU/Linux or any other POSIX compatible systems!

```sh
git clone https://github.com/KoBruhh/RASCII && cd RASCII
chmod +x install.sh
./install.sh
curl -sL https://raw.githubusercontent.com/orhnk/RASCII/refs/heads/master/install.sh | sh
```

## Using The Crate
Expand Down
16 changes: 14 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
#!/bin/sh

echo "Sudo is needed to copy the binary to /usr/bin - prompting now."
echo "Sudo is needed to copy the binary to /usr/local/bin - prompting now."
sudo true

if [ -d "RASCII" ]; then
echo "Error: RASCII directory already exists"
exit 1
fi

if ! git clone https://github.com/orhnk/RASCII; then
echo "Error: Failed to clone RASCII repository"
exit 1
fi

cd RASCII

cargo build --release

sudo cp ./target/release/rascii /usr/bin
sudo cp ./target/release/rascii /usr/local/bin

echo "RASCII has been successfully installed on your system. You can run

Expand Down