croc icon indicating copy to clipboard operation
croc copied to clipboard

Installation fails with The requested URL returned error

Open RodolfoGS opened this issue 2 years ago • 4 comments

Describe the bug

The instalation process fails with the following error:

\e[0m== Install prefix set to /usr/local/bin\e[0m
\e[0m== Created temp dir at /var/folders/5t/v_z_k0gx7m99jw6blgsj_dqh0000gn/T/croc.XXXXXX.UjlToaoB\e[0m
\e[0m== Architecture detected as arm64\e[0m
\e[0m== OS detected as Darwin\e[0m
curl: (22) The requested URL returned error: 404
\e[0;31m== Return code of download tool returned an unexpected value of 22\e[0m

To Reproduce

Steps to reproduce the behavior:

  1. curl https://getcroc.schollz.com | bash
  2. Error happens

Expected behaviour

Instalation success

Version

Can't install the latest version.

Additional context

MacOS 12.6

RodolfoGS avatar Oct 14 '22 16:10 RodolfoGS

It seems like the base URL (https://github.com/schollz/croc/releases/download) defined in line 533 is unreachable.

croc_base_url="https://github.com/schollz/croc/releases/download"

UnrelatedWorks avatar Oct 22 '22 14:10 UnrelatedWorks

I've tried to debug the code a bit. By hardcoding the local url variable to the direct download (https://github.com/schollz/croc/releases/download/v9.6.1/croc_9.6.1_macOS-ARM64.tar.gz), I'm able to circumvent the 404 error.
But the \e[0m== at the start of every line still bothers me, I don't know where it's getting the value from.

UnrelatedWorks avatar Oct 22 '22 14:10 UnrelatedWorks

I am facing the same issue on MacOS, but not an linux. Maybe is has something to do with zsh

juliangaal avatar Jan 13 '23 18:01 juliangaal

Stale issue message

github-actions[bot] avatar Feb 20 '24 12:02 github-actions[bot]