webi-installers
webi-installers copied to clipboard
Can't install pwsh
What were you trying to install (or what else went wrong)?
pwsh
What exactly did you do?
curl -sS https://webi.sh/[email protected] | sh
What went wrong?
You should be able to run the same using docker if you don't have podman
🚀 podman run --rm catthehacker/ubuntu:act-latest sh -c "curl -sS https://webi.sh/[email protected] | sh"
>>> Welcome to Webi! - modern tools, instant installs. <<<
We expect your experience to be absolutely perfect!
Success? Star it! https://github.com/webinstall/webi-installers
Problem? Report it: https://github.com/webinstall/webi-installers/issues
(your system is GNU/Linux/x86_64 with libc & curl+wget)
Bootstrapping Webi
Downloading https://webi.sh/packages/webi/webi.sh
to ~/.local/bin/webi
Running ~/.local/bin/webi [email protected]
Installing pwsh ...
Found ~/.local/bin
Downloading pwsh from
https://github.com/PowerShell/PowerShell/releases/download/v7.4.1/powershell-7.4.1-linux-x64.tar.gz
Saved as ~/Downloads/webi/pwsh/7.4.1/powershell-7.4.1-linux-x64.tar.gz
Extracting ~/Downloads/webi/pwsh/7.4.1/powershell-7.4.1-linux-x64.tar.gz
Installing to ~/.local/opt/pwsh-v7.4.1/pwsh
Initializing ~/.config/envman/
Edit ~/.profile to source ~/.config/envman/load.sh
Edit ~/.bashrc to source ~/.config/envman/load.sh
Installed 'pwsh' at /root/.local/opt/pwsh
[email protected]: 470: pwsh: not found
Which OS did you try on?
- [ ] Mac
- [ ] Windows
- [x] Linux
What type of computer (i.e. laptop, desktop, Raspberry Pi)?
- [x] Laptop or Desktop (amd64 / x86-64)
- [ ] Raspberry Pi (ARM-64)
- [ ] Other (please specify, if you know)
Possible explanation
Since pwsh is not in $PATH yet, it needs to be called fully qualified. https://github.com/webinstall/webi-installers/blob/c431ce0b22dd4a577af1be4f0ebf5c0a22c689ef/pwsh/install.sh#L49
I think that the package format changed between 7.3 and 7.4.
That's the worst, because I really don't want to have conditionals between installer versions.
People just don't treat Releases like an API.