Skip to content

Commit

Permalink
Use basename in Install Script
Browse files Browse the repository at this point in the history
It's simpler and easier, and probably less likely to break.
  • Loading branch information
mkasberg committed Jan 5, 2025
1 parent 1d68649 commit b38e4d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ GHOSTTY_DEB_URL=$(
curl -s https://api.github.com/repos/mkasberg/ghostty-ubuntu/releases/latest | \
grep -oP "https://github.com/mkasberg/ghostty-ubuntu/releases/download/[^\s/]+/ghostty_[^\s/_]+_amd64_${VERSION_ID}.deb"
)
GHOSTTY_DEB_FILE=$(echo $GHOSTTY_DEB_URL | grep -oP "ghostty_[^\s/]+\.deb")
GHOSTTY_DEB_FILE=$(basename "$GHOSTTY_DEB_URL")
curl -LO "$GHOSTTY_DEB_URL"
sudo dpkg -i "$GHOSTTY_DEB_FILE"
rm "$GHOSTTY_DEB_FILE"
Expand Down

0 comments on commit b38e4d2

Please sign in to comment.