abhimanyu003 / sttr

cross-platform, cli app to perform various operations on string

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when attempting to install the application through curl

roopeshsn opened this issue · comments

Ran the command curl -sfL https://raw.githubusercontent.com/abhimanyu003/sttr/main/install.sh | sh from the bin directory,

install: cannot create regular file '/usr/local/bin/sttr': Permission denied

Tried with sudo too.

What's the cause of the error and how to rectify it?

Hello @roopeshsn thanks so much for reaching out.

Can you please try this once?

curl -s https://raw.githubusercontent.com/abhimanyu003/sttr/master/install.sh | sudo bash

You can also use webi, after install only needs to export the path.

curl -sS https://webi.sh/sttr | sh

Let me know.

Why use Webi? After running the command curl -s https://raw.githubusercontent.com/abhimanyu003/sttr/master/install.sh | sudo bash I am able to interact with the cli through sttr without exporting the path. As you said, why export the path through Webi? However to export the path, can't we do that by adding the line export PATH="/usr/local/bin/sttr:$PATH" in the install.sh?

Good to know this is working for you.

curl -s https://raw.githubusercontent.com/abhimanyu003/sttr/master/install.sh | sudo bash

Webi is just another alternative installer like snap, aur etc. don't have to use sudo with it. ( It's optional )

I don't think we have to add it to install.sh as almost all users have /usr/local/bin path exported

Alright, @abhimanyu003. The same command,

curl -s https://raw.githubusercontent.com/abhimanyu003/sttr/master/install.sh | sudo bash

won't work in Windows right? I don't want to use Webi. How can I install the cli in Windows?

For Windows.

  • Download the tar based on your Windows type.
  • Extract the tar
  • Move sttr.exe to %SystemRoot%/System32 ( C:\Windows\System32 )

You can also sttr.exe to any location you have in your system path

Download Types

Other Ways

  • Use scoop
scoop bucket add sttr https://github.com/abhimanyu003/scoop-bucket.git
scoop install sttr
  • We are working on choco install and powershell script

Let me know your thoughts 💯