martindstone / pagerduty-cli

A command line interface for PagerDuty
MIT License
91 stars 13 forks source link

Broken symlink #67

Open mwarkentin opened 1 month ago

mwarkentin commented 1 month ago

Errors when running pd. I attempted a fresh install before this. Not sure how I ended up in this state:

❯ sh -c "$(curl -sL https://raw.githubusercontent.com/martindstone/pagerduty-cli/master/install.sh)"
This script requires superuser access.
You will be prompted for your password by sudo.
Installing CLI from https://ms-pagerduty-cli.s3-us-west-2.amazonaws.com/channels/stable/pd-darwin-arm64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 34.3M  100 34.3M    0     0  1018k      0  0:00:34  0:00:34 --:--:--  836k
v16.19.0
pd installed to /usr/local/bin/pd
/Users/mwarkentin/.local/share/pagerduty-cli/client/bin/pd: line 16: /Users/mwarkentin/.local/share/pagerduty-cli/client/bin/../0.1.18-3cb4ffe/bin/pd: No such file or directory
❯ pd
/Users/mwarkentin/.local/share/pagerduty-cli/client/bin/pd: line 16: /Users/mwarkentin/.local/share/pagerduty-cli/client/bin/../0.1.18-3cb4ffe/bin/pd: No such file or directory
martindstone commented 1 month ago

Hi @mwarkentin ,

Sometimes the local cache gets messed up by update. If you remove the directory ~/.local/share/pagerduty-cli then the error should go away. Let me know.

Thanks, Martin

khntst commented 1 month ago

Thanks Martin! That solved my issue also, which was the same thing.

mwarkentin commented 1 week ago

Sorry, this fixed it and I guess I forgot to update. Maybe good to document in the README or similar..