diff --git a/README.md b/README.md index 21829b6b..2f73d1d1 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/install.sh b/install.sh index 31d4a9ea..75319a52 100755 --- a/install.sh +++ b/install.sh @@ -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